feat(dal): обновлены модели AppInWorks, Templates
This commit is contained in:
2864
PARR.DAL/Migrations/20240701035811_tblAppInWorksAddCols.Designer.cs
generated
Normal file
2864
PARR.DAL/Migrations/20240701035811_tblAppInWorksAddCols.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
41
PARR.DAL/Migrations/20240701035811_tblAppInWorksAddCols.cs
Normal file
41
PARR.DAL/Migrations/20240701035811_tblAppInWorksAddCols.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
using System;
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class tblAppInWorksAddCols : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "IsAutoDistributionEnabled",
|
||||
table: "ApplicationsInWorks",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<DateTimeOffset>(
|
||||
name: "ReferenceDate",
|
||||
table: "ApplicationsInWorks",
|
||||
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: "IsAutoDistributionEnabled",
|
||||
table: "ApplicationsInWorks");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "ReferenceDate",
|
||||
table: "ApplicationsInWorks");
|
||||
}
|
||||
}
|
||||
}
|
||||
2870
PARR.DAL/Migrations/20240701040107_tblTemplatesAddLastNextRun.Designer.cs
generated
Normal file
2870
PARR.DAL/Migrations/20240701040107_tblTemplatesAddLastNextRun.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -266,12 +266,18 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<bool>("IsAgent")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsAutoDistributionEnabled")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<DateTimeOffset?>("LastRun")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTimeOffset>("NextRun")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<DateTimeOffset>("ReferenceDate")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("ShortDescription")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
@@ -2176,10 +2182,16 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<bool>("IsActiveTemplate")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<DateTimeOffset?>("LastRun")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("Name")
|
||||
.IsRequired()
|
||||
.HasColumnType("text");
|
||||
|
||||
b.Property<DateTimeOffset>("NextRun")
|
||||
.HasColumnType("timestamp with time zone");
|
||||
|
||||
b.Property<string>("ScheduleEsppId")
|
||||
.HasColumnType("text");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user