fix(dal): удалены лишние поля в таблице JobAutoControl
This commit is contained in:
3932
PARR.DAL/Migrations/20251205055752_updAutoControl.Designer.cs
generated
Normal file
3932
PARR.DAL/Migrations/20251205055752_updAutoControl.Designer.cs
generated
Normal file
File diff suppressed because it is too large
Load Diff
68
PARR.DAL/Migrations/20251205055752_updAutoControl.cs
Normal file
68
PARR.DAL/Migrations/20251205055752_updAutoControl.cs
Normal file
@@ -0,0 +1,68 @@
|
||||
using Microsoft.EntityFrameworkCore.Migrations;
|
||||
|
||||
#nullable disable
|
||||
|
||||
namespace PARR.DAL.Migrations
|
||||
{
|
||||
/// <inheritdoc />
|
||||
public partial class updAutoControl : Migration
|
||||
{
|
||||
/// <inheritdoc />
|
||||
protected override void Up(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SyncIsActiveSchedule",
|
||||
schema: "job",
|
||||
table: "AutoControls");
|
||||
|
||||
migrationBuilder.DropColumn(
|
||||
name: "SyncIsActiveTemplate",
|
||||
schema: "job",
|
||||
table: "AutoControls");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UpdateIsActiveTemplate",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "InitUsedTemplateState");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "UpdateIsActiveSchedule",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "InitUsedScheduleState");
|
||||
}
|
||||
|
||||
/// <inheritdoc />
|
||||
protected override void Down(MigrationBuilder migrationBuilder)
|
||||
{
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "InitUsedTemplateState",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "UpdateIsActiveTemplate");
|
||||
|
||||
migrationBuilder.RenameColumn(
|
||||
name: "InitUsedScheduleState",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
newName: "UpdateIsActiveSchedule");
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "SyncIsActiveSchedule",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
|
||||
migrationBuilder.AddColumn<bool>(
|
||||
name: "SyncIsActiveTemplate",
|
||||
schema: "job",
|
||||
table: "AutoControls",
|
||||
type: "boolean",
|
||||
nullable: false,
|
||||
defaultValue: false);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1602,21 +1602,15 @@ namespace PARR.DAL.Migrations
|
||||
b.Property<Guid>("JobId")
|
||||
.HasColumnType("uuid");
|
||||
|
||||
b.Property<bool>("InitUsedScheduleState")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("InitUsedTemplateState")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("IsEnable")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("SyncIsActiveSchedule")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("SyncIsActiveTemplate")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("UpdateIsActiveSchedule")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.Property<bool>("UpdateIsActiveTemplate")
|
||||
.HasColumnType("boolean");
|
||||
|
||||
b.HasKey("JobId");
|
||||
|
||||
b.ToTable("AutoControls", "job", t =>
|
||||
|
||||
Reference in New Issue
Block a user