feat(dal): обновлены модели AppInWorks, Templates

This commit is contained in:
Mikhail Kuznetsov
2024-07-01 14:04:24 +10:00
parent 6e378f2b06
commit 3a7529d9cd
7 changed files with 5845 additions and 0 deletions

View File

@@ -0,0 +1,40 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace PARR.DAL.Migrations
{
/// <inheritdoc />
public partial class tblTemplatesAddLastNextRun : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<DateTimeOffset>(
name: "LastRun",
table: "Templates",
type: "timestamp with time zone",
nullable: true);
migrationBuilder.AddColumn<DateTimeOffset>(
name: "NextRun",
table: "Templates",
type: "timestamp with time zone",
nullable: false,
defaultValue: new DateTimeOffset(new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), new TimeSpan(0, 0, 0, 0, 0)));
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "LastRun",
table: "Templates");
migrationBuilder.DropColumn(
name: "NextRun",
table: "Templates");
}
}
}