using Microsoft.EntityFrameworkCore.Migrations; namespace WCS.Service.Migrations { public partial class _7111 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.RenameColumn( name: "RES3", table: "WCS_STATION521", newName: "PH_STATUS2"); migrationBuilder.AddColumn( name: "FLOOR", table: "WCS_TASK", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "FULLQTY", table: "WCS_TASK", type: "smallint", nullable: false, defaultValue: (short)0); migrationBuilder.AddColumn( name: "WORKSHOP", table: "WCS_TASK", type: "smallint", nullable: false, defaultValue: (short)0); migrationBuilder.AlterColumn( name: "CONTENT", table: "WCS_BCR80", type: "nvarchar(200)", maxLength: 200, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(20)", oldMaxLength: 20, oldNullable: true); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "FLOOR", table: "WCS_TASK"); migrationBuilder.DropColumn( name: "FULLQTY", table: "WCS_TASK"); migrationBuilder.DropColumn( name: "WORKSHOP", table: "WCS_TASK"); migrationBuilder.RenameColumn( name: "PH_STATUS2", table: "WCS_STATION521", newName: "RES3"); migrationBuilder.AlterColumn( name: "CONTENT", table: "WCS_BCR80", type: "nvarchar(20)", maxLength: 20, nullable: true, oldClrType: typeof(string), oldType: "nvarchar(200)", oldMaxLength: 200, oldNullable: true); } } }