fix(dal): удалены лишние поля в таблице JobAutoControl
This commit is contained in:
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user