You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

78 lines
2.3 KiB

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<int>(
name: "DistributionType",
table: "Basedata_Bom",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<string>(
name: "ERPOp",
table: "Basedata_Bom",
type: "nvarchar(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "MFGOp",
table: "Basedata_Bom",
type: "nvarchar(64)",
maxLength: 64,
nullable: true);
migrationBuilder.AddColumn<int>(
name: "PlannedSplitRule",
table: "Basedata_Bom",
type: "int",
nullable: false,
defaultValue: 0);
migrationBuilder.AddColumn<int>(
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<string>(
name: "Op",
table: "Basedata_Bom",
type: "nvarchar(max)",
nullable: true);
}
}
}