using Microsoft.EntityFrameworkCore.Migrations; #nullable disable namespace HHWMS.Web.Migrations { public partial class addupdateversion : Migration { protected override void Up(MigrationBuilder migrationBuilder) { migrationBuilder.AddColumn( name: "UpdateVersion", table: "ShipmentHeader", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "UpdateVersion", table: "ShipmentDetail", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "UpdateVersion", table: "ReceiptHeader", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "UpdateVersion", table: "ReceiptDetail", type: "int", nullable: false, defaultValue: 0); migrationBuilder.AddColumn( name: "UpdateVersion", table: "Inventory", type: "int", nullable: false, defaultValue: 0); } protected override void Down(MigrationBuilder migrationBuilder) { migrationBuilder.DropColumn( name: "UpdateVersion", table: "ShipmentHeader"); migrationBuilder.DropColumn( name: "UpdateVersion", table: "ShipmentDetail"); migrationBuilder.DropColumn( name: "UpdateVersion", table: "ReceiptHeader"); migrationBuilder.DropColumn( name: "UpdateVersion", table: "ReceiptDetail"); migrationBuilder.DropColumn( name: "UpdateVersion", table: "Inventory"); } } }