using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace PARR.DAL.Migrations { /// public partial class updAutoControl : Migration { /// 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"); } /// 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( name: "SyncIsActiveSchedule", schema: "job", table: "AutoControls", type: "boolean", nullable: false, defaultValue: false); migrationBuilder.AddColumn( name: "SyncIsActiveTemplate", schema: "job", table: "AutoControls", type: "boolean", nullable: false, defaultValue: false); } } }