using Microsoft.EntityFrameworkCore.Migrations; namespace Win_in.Sfs.Basedata.Migrations { public partial class Bomupdate : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "Op", table: "Basedata_Bom"); migrationBuilder.AddColumn( name: "DistributionType", table: "Basedata_Bom", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "ERPOp", table: "Basedata_Bom", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "MFGOp", table: "Basedata_Bom", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "PlannedSplitRule", table: "Basedata_Bom", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "TruncType", table: "Basedata_Bom", type: "int", nullable: false, defaultValue: 0); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "DistributionType", table: "Basedata_Bom"); migrationBuilder.DropColumn( name: "ERPOp", table: "Basedata_Bom"); migrationBuilder.DropColumn( name: "MFGOp", table: "Basedata_Bom"); migrationBuilder.DropColumn( name: "PlannedSplitRule", table: "Basedata_Bom"); migrationBuilder.DropColumn( name: "TruncType", table: "Basedata_Bom"); migrationBuilder.AddColumn( name: "Op", table: "Basedata_Bom", type: "nvarchar(max)", nullable: true); } } }