using System; using Microsoft.EntityFrameworkCore.Migrations; namespace Win_in.Sfs.Wms.Job.Migrations { public partial class MesDeliverJob2022072802 : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "HandledBatch_ProduceDate", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "HandledBatch_SupplierBatch", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "HandledContainerCode", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "HandledLocationCode", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "HandledLot", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "HandledPackingCode", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "HandledQty_Qty", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "HandledQty_Uom", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "ItemCode", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "Item_Desc1", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "Item_Desc2", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "Item_Id", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "Item_Name", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendBatch_ProduceDate", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendBatch_SupplierBatch", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendContainerCode", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendLocationCode", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendLot", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendPackingCode", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendQty_Qty", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "RecommendQty_Uom", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "StdPack_PackQty", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "StdPack_PackUom", table: "JobMesDeliverJobDetail"); migrationBuilder.DropColumn( name: "WarehouseCode", table: "JobMesDeliverJobDetail"); migrationBuilder.AlterColumn( name: "Number", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true, oldClrType: typeof(string), oldType: "nvarchar(64)", oldMaxLength: 64); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.AlterColumn( name: "Number", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: false, defaultValue: "", oldClrType: typeof(string), oldType: "nvarchar(max)", oldNullable: true); migrationBuilder.AddColumn( name: "HandledBatch_ProduceDate", table: "JobMesDeliverJobDetail", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "HandledBatch_SupplierBatch", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "HandledContainerCode", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "HandledLocationCode", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", maxLength: 4096, nullable: true); migrationBuilder.AddColumn( name: "HandledLot", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", maxLength: 4096, nullable: true); migrationBuilder.AddColumn( name: "HandledPackingCode", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "HandledQty_Qty", table: "JobMesDeliverJobDetail", type: "decimal(18,2)", nullable: true); migrationBuilder.AddColumn( name: "HandledQty_Uom", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "ItemCode", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: false, defaultValue: ""); migrationBuilder.AddColumn( name: "Item_Desc1", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Item_Desc2", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "Item_Id", table: "JobMesDeliverJobDetail", type: "uniqueidentifier", nullable: true); migrationBuilder.AddColumn( name: "Item_Name", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "RecommendBatch_ProduceDate", table: "JobMesDeliverJobDetail", type: "datetime2", nullable: true); migrationBuilder.AddColumn( name: "RecommendBatch_SupplierBatch", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "RecommendContainerCode", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "RecommendLocationCode", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "RecommendLot", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "RecommendPackingCode", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: true); migrationBuilder.AddColumn( name: "RecommendQty_Qty", table: "JobMesDeliverJobDetail", type: "decimal(18,2)", nullable: true); migrationBuilder.AddColumn( name: "RecommendQty_Uom", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "StdPack_PackQty", table: "JobMesDeliverJobDetail", type: "decimal(18,2)", nullable: true); migrationBuilder.AddColumn( name: "StdPack_PackUom", table: "JobMesDeliverJobDetail", type: "nvarchar(max)", nullable: true); migrationBuilder.AddColumn( name: "WarehouseCode", table: "JobMesDeliverJobDetail", type: "nvarchar(64)", maxLength: 64, nullable: false, defaultValue: ""); } } }