|
|
@ -7,180 +7,252 @@ namespace Win.Sfs.SettleAccount.Migrations |
|
|
|
{ |
|
|
|
protected override void Up(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.DropTable( |
|
|
|
name: "Set_VmiSyncTask"); |
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "UpdatedTime", |
|
|
|
table: "Set_VmiLog", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
defaultValueSql: "getdate()", |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "CreatedTime", |
|
|
|
table: "Set_VmiLog", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
defaultValueSql: "getdate()", |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "ChangedTime", |
|
|
|
table: "Set_VmiLog", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
defaultValueSql: "getdate()", |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "UpdatedTime", |
|
|
|
table: "Set_VmiBalance", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
defaultValueSql: "getdate()", |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "CreatedTime", |
|
|
|
table: "Set_VmiBalance", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
defaultValueSql: "getdate()", |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
|
|
|
columns: new[] { "ConcurrencyStamp", "Name" }, |
|
|
|
values: new object[] { "89413f316dbf4647954b6669de927488", "同步结算库存" }); |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "53ae466323824168bcb3cfbb7690bf07"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
|
|
|
columns: new[] { "ConcurrencyStamp", "Name" }, |
|
|
|
values: new object[] { "ebb73d81d23c4ed9a6ae59730d163f4b", "事务消息监控" }); |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "5f2e16e5b3ec4e8289be386e1ee02a8e"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "e581ee4de97a46b1a1c0ba75a101c064"); |
|
|
|
value: "cd646b7951d1416280aa91e4eba0bdcd"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "a7be915b8a5541c58081c668219edfb7"); |
|
|
|
value: "cdfe54ee987a4f0693ef60530817cb5c"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "1fb801f3cbff422082d888ee8b5dab64"); |
|
|
|
value: "c4ed2f64b0ae4faebfce741f32e24b50"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "df723d768280494e88d49734cc6e55e5"); |
|
|
|
value: "b40af7f8fbcf4597b2cc2179cffecf86"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "93962cebd40f490b9df08b215b2c7bd2"); |
|
|
|
value: "87a03d84519644d390b8588932fe5df2"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "1c542463eb8746db949bcda48eabdbd8"); |
|
|
|
value: "866a884f080542aeb6c028d1ca3b5323"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "c5b29d7fa18e4b9cb8bc1e354d10c3ac"); |
|
|
|
value: "fb3db63b74744f1482b0e66505d582e0"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|
|
|
columns: new[] { "ConcurrencyStamp", "Name" }, |
|
|
|
values: new object[] { "25ec0d7c647f42d88882c4187af74201", "库存快照备份" }); |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "894bdd1d59cf4a3192d3a5d9a743b7ea"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "7bbeaa02b39947c089eda7f4b05babb9"); |
|
|
|
value: "3818b146b26542e197e47ecef3a3dc5e"); |
|
|
|
} |
|
|
|
|
|
|
|
protected override void Down(MigrationBuilder migrationBuilder) |
|
|
|
{ |
|
|
|
migrationBuilder.CreateTable( |
|
|
|
name: "Set_VmiSyncTask", |
|
|
|
columns: table => new |
|
|
|
{ |
|
|
|
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
|
|
|
ConcurrencyStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
|
|
|
LastUpdate = table.Column<DateTime>(type: "datetime2", nullable: false), |
|
|
|
Name = table.Column<string>(type: "nvarchar(max)", nullable: true), |
|
|
|
Number = table.Column<string>(type: "nvarchar(max)", nullable: true) |
|
|
|
}, |
|
|
|
constraints: table => |
|
|
|
{ |
|
|
|
table.PrimaryKey("PK_Set_VmiSyncTask", x => x.Id); |
|
|
|
}); |
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "UpdatedTime", |
|
|
|
table: "Set_VmiLog", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2", |
|
|
|
oldDefaultValueSql: "getdate()"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "CreatedTime", |
|
|
|
table: "Set_VmiLog", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2", |
|
|
|
oldDefaultValueSql: "getdate()"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "ChangedTime", |
|
|
|
table: "Set_VmiLog", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2", |
|
|
|
oldDefaultValueSql: "getdate()"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "UpdatedTime", |
|
|
|
table: "Set_VmiBalance", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2", |
|
|
|
oldDefaultValueSql: "getdate()"); |
|
|
|
|
|
|
|
migrationBuilder.AlterColumn<DateTime>( |
|
|
|
name: "CreatedTime", |
|
|
|
table: "Set_VmiBalance", |
|
|
|
type: "datetime2", |
|
|
|
nullable: false, |
|
|
|
oldClrType: typeof(DateTime), |
|
|
|
oldType: "datetime2", |
|
|
|
oldDefaultValueSql: "getdate()"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"), |
|
|
|
columns: new[] { "ConcurrencyStamp", "Name" }, |
|
|
|
values: new object[] { "b282d04b720a4453bac838a6d2702c5e", "同步库存" }); |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "b6452a12f9814a2ba8097b0a34934cf1"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"), |
|
|
|
columns: new[] { "ConcurrencyStamp", "Name" }, |
|
|
|
values: new object[] { "af7e13c541954124a384db3d957e96f8", "消息监控" }); |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "e84ff12fed794e3d8eb0d8b6945873ce"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "1c63ae9d135a409da20ef2956f075921"); |
|
|
|
value: "f4063fd5bc9a4321941edf1663633d73"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "7d2a76e6327d46f4a93d15d91794de13"); |
|
|
|
value: "565a6be9ca2a450aae2dc98b972a32bc"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "448472749b8e4be587a6c8a9079bb4c1"); |
|
|
|
value: "f21a6c7a50a5405aaced44507dbdd01b"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "ffca086d0a884f118ec61e00c1ea11cf"); |
|
|
|
value: "df201f57bc0448d3909942c81a553597"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "9758552b36a24d20bc4fd3efaa2c828a"); |
|
|
|
value: "673b92ac1f384632b35953a8601e92f2"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "7ac5c23ffc254496b3bfeac777aceb78"); |
|
|
|
value: "0f62e911f48d4c97a534eab3a6b2ddbd"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "a9ef4db8c8c547ff880badc98ecb3fb7"); |
|
|
|
value: "6a1b56ecc53e4c56b036daab195d3a86"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"), |
|
|
|
columns: new[] { "ConcurrencyStamp", "Name" }, |
|
|
|
values: new object[] { "38598fb3653c48be8f63119787de2df8", "库存快照" }); |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "6e7a483ccf0e41e888beffb1e492f57e"); |
|
|
|
|
|
|
|
migrationBuilder.UpdateData( |
|
|
|
table: "Set_JobItem", |
|
|
|
keyColumn: "Id", |
|
|
|
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"), |
|
|
|
column: "ConcurrencyStamp", |
|
|
|
value: "298ad96e7d61427ba492ccdb1db7e900"); |
|
|
|
value: "b493f376395d40c7ad727a14ec909ee0"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |