69 lines
2.1 KiB
C#
69 lines
2.1 KiB
C#
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);
|
|
}
|
|
}
|
|
}
|