71 lines
2.0 KiB
C#
71 lines
2.0 KiB
C#
using Microsoft.EntityFrameworkCore.Migrations;
|
|
|
|
#nullable disable
|
|
|
|
namespace HHWMS.Web.Migrations
|
|
{
|
|
public partial class addupdateversion : Migration
|
|
{
|
|
protected override void Up(MigrationBuilder migrationBuilder)
|
|
{
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "UpdateVersion",
|
|
table: "ShipmentHeader",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "UpdateVersion",
|
|
table: "ShipmentDetail",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "UpdateVersion",
|
|
table: "ReceiptHeader",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
name: "UpdateVersion",
|
|
table: "ReceiptDetail",
|
|
type: "int",
|
|
nullable: false,
|
|
defaultValue: 0);
|
|
|
|
migrationBuilder.AddColumn<int>(
|
|
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");
|
|
}
|
|
}
|
|
}
|