学 赵
1 year ago
11 changed files with 6019 additions and 116 deletions
File diff suppressed because it is too large
@ -0,0 +1,224 @@ |
|||
using System; |
|||
using Microsoft.EntityFrameworkCore.Migrations; |
|||
|
|||
namespace Win.Sfs.SettleAccount.Migrations |
|||
{ |
|||
public partial class _202308120001 : Migration |
|||
{ |
|||
protected override void Up(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("3fc80398-34df-4288-9ad7-37db79c80192")); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_SEC_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_NOT_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_PUB_NOT_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_PUB_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_ADJ_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_PUB_ADJ_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_SEC_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_NOT_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_HBPO_NOT_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_HBPO_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_ADJ_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_HBPO_ADJ_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_BBAC_SEC_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_BBAC_NOT_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_BBAC_NOT_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "ErpLoc", |
|||
table: "Set_BBAC_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.AddColumn<string>( |
|||
name: "RealPartCode", |
|||
table: "Set_BBAC_CAN_SA_DETAIL", |
|||
type: "nvarchar(50)", |
|||
nullable: true); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("0986cf48-5c48-4d14-a7b5-77e0d5da28b9"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "60e9bdd1236e478e861a8d0d950d715b", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|||
} |
|||
|
|||
protected override void Down(MigrationBuilder migrationBuilder) |
|||
{ |
|||
migrationBuilder.DeleteData( |
|||
table: "Set_VmiBalance", |
|||
keyColumn: "Id", |
|||
keyValue: new Guid("0986cf48-5c48-4d14-a7b5-77e0d5da28b9")); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_SEC_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_NOT_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_PUB_NOT_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_PUB_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_PUB_ADJ_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_PUB_ADJ_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_SEC_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_NOT_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_HBPO_NOT_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_HBPO_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_HBPO_ADJ_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_HBPO_ADJ_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_BBAC_SEC_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_BBAC_NOT_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "ErpLoc", |
|||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.DropColumn( |
|||
name: "RealPartCode", |
|||
table: "Set_BBAC_CAN_SA_DETAIL"); |
|||
|
|||
migrationBuilder.InsertData( |
|||
table: "Set_VmiBalance", |
|||
columns: new[] { "Id", "BackupTime", "BillTime", "BillType", "CodeType", "ConcurrencyStamp", "Configcode", "CustomerPartCode", "DeliverTime", "ErpToLoc", "MatchNumber", "OrderNum", "PartCode", "PjsNum", "Qty", "ReMark", "RealCode", "Seq", "SubBillType", "UniqueCode", "VinCode", "factory" }, |
|||
values: new object[] { new Guid("3fc80398-34df-4288-9ad7-37db79c80192"), null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), 1, null, "b792ebaa809446988e3a5e7887e75ecb", null, null, new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified), "ErpToLoc", null, "OrderNum", "PartCode", null, 0m, null, null, null, 0, null, "VinCode", null }); |
|||
} |
|||
} |
|||
} |
Loading…
Reference in new issue