Browse Source

[CI SKIP] EF迁移 添加索引

master
mahao 1 year ago
parent
commit
daca3326c3
  1. 10
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs
  2. 6170
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.Designer.cs
  3. 258
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.cs
  4. 42
      code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

10
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/EntityFrameworkCore/SettleAccountDbContextModelCreatingExtensions.cs

@ -464,6 +464,9 @@ namespace Win.Sfs.SettleAccount
b.Property(x => x.GroupNum).HasMaxLength(50);
b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
b.HasIndex(x => x.BusinessType);
b.HasIndex(x => x.Version);
b.HasIndex(x => x.MappingType);
b.HasIndex(x => new { x.CustomerPartCodeNoSpace, x.PN });
});
}
@ -484,6 +487,7 @@ namespace Win.Sfs.SettleAccount
b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
b.HasIndex(x => x.BusinessType);
b.HasIndex(x => x.IsHaveEdiData);
b.HasIndex(x => new { x.CustomerPartCodeNoSpace, x.PN });
});
}
@ -507,6 +511,7 @@ namespace Win.Sfs.SettleAccount
b.Property(x => x.Extend4).HasMaxLength(50);
b.HasIndex(x => x.IsDeleted);
b.HasIndex(x => x.IsHaveSeData);
b.HasIndex(x => new { x.CustomerPartCodeNoSpace, x.PN });
});
}
@ -654,6 +659,9 @@ namespace Win.Sfs.SettleAccount
b.Property(x => x.GroupNum).HasMaxLength(50);
b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
b.HasIndex(x => x.BusinessType);
b.HasIndex(x => x.Version);
b.HasIndex(x => x.MappingType);
b.HasIndex(x => new { x.CustomerPartCodeNoSpace, x.PN });
});
}
@ -674,6 +682,7 @@ namespace Win.Sfs.SettleAccount
b.Property(x => x.ConcurrencyStamp).HasMaxLength(50);
b.HasIndex(x => x.BusinessType);
b.HasIndex(x => x.IsHaveEdiData);
b.HasIndex(x => new { x.CustomerPartCodeNoSpace, x.PN });
});
}
@ -757,6 +766,7 @@ namespace Win.Sfs.SettleAccount
b.Property(x => x.Extend4).HasMaxLength(50);
b.HasIndex(x => x.IsDeleted);
b.HasIndex(x => x.IsHaveSeData);
b.HasIndex(x => new { x.CustomerPartCodeNoSpace, x.PN });
});
}

6170
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.Designer.cs

File diff suppressed because it is too large

258
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/20231013032738_20231013-3.cs

@ -0,0 +1,258 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
namespace Win.Sfs.SettleAccount.Migrations
{
public partial class _202310133 : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
column: "ConcurrencyStamp",
value: "a9b7c93f626040ad9263c02685f632fd");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
column: "ConcurrencyStamp",
value: "9b2db87bd049489ea604914c36d72f21");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
column: "ConcurrencyStamp",
value: "666f8653c5df429291d8f9bf340272ad");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
column: "ConcurrencyStamp",
value: "e80a3d92203642cca3d05f3c8b658d4d");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
column: "ConcurrencyStamp",
value: "047259cc9d7a4f01b43465207f937bbe");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
column: "ConcurrencyStamp",
value: "40a18956b53248bfa975b313aa03b571");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
column: "ConcurrencyStamp",
value: "0ca8403cc0674c56b2e136103af08ebd");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
column: "ConcurrencyStamp",
value: "682f0162c2c0488fa56edb41b89bc4ec");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
column: "ConcurrencyStamp",
value: "2f5fa52bb80b46b39eecb861a73c71f2");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
column: "ConcurrencyStamp",
value: "1199edad1ea74d6ea16ed79c4d695306");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
column: "ConcurrencyStamp",
value: "1573edbadee043c0a8f663bf5a8569b1");
migrationBuilder.CreateIndex(
name: "IX_Set_HBPO_SE_EDI_CustomerPartCodeNoSpace_PN",
table: "Set_HBPO_SE_EDI",
columns: new[] { "CustomerPartCodeNoSpace", "PN" });
migrationBuilder.CreateIndex(
name: "IX_Set_HBPO_SE_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_HBPO_SE_DETAIL",
columns: new[] { "CustomerPartCodeNoSpace", "PN" });
migrationBuilder.CreateIndex(
name: "IX_Set_HBPO_SA_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_HBPO_SA_DETAIL",
columns: new[] { "CustomerPartCodeNoSpace", "PN" });
migrationBuilder.CreateIndex(
name: "IX_Set_HBPO_SA_DETAIL_MappingType",
table: "Set_HBPO_SA_DETAIL",
column: "MappingType");
migrationBuilder.CreateIndex(
name: "IX_Set_HBPO_SA_DETAIL_Version",
table: "Set_HBPO_SA_DETAIL",
column: "Version");
migrationBuilder.CreateIndex(
name: "IX_Set_BBAC_SE_EDI_CustomerPartCodeNoSpace_PN",
table: "Set_BBAC_SE_EDI",
columns: new[] { "CustomerPartCodeNoSpace", "PN" });
migrationBuilder.CreateIndex(
name: "IX_Set_BBAC_SE_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_BBAC_SE_DETAIL",
columns: new[] { "CustomerPartCodeNoSpace", "PN" });
migrationBuilder.CreateIndex(
name: "IX_Set_BBAC_SA_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_BBAC_SA_DETAIL",
columns: new[] { "CustomerPartCodeNoSpace", "PN" });
migrationBuilder.CreateIndex(
name: "IX_Set_BBAC_SA_DETAIL_MappingType",
table: "Set_BBAC_SA_DETAIL",
column: "MappingType");
migrationBuilder.CreateIndex(
name: "IX_Set_BBAC_SA_DETAIL_Version",
table: "Set_BBAC_SA_DETAIL",
column: "Version");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropIndex(
name: "IX_Set_HBPO_SE_EDI_CustomerPartCodeNoSpace_PN",
table: "Set_HBPO_SE_EDI");
migrationBuilder.DropIndex(
name: "IX_Set_HBPO_SE_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_HBPO_SE_DETAIL");
migrationBuilder.DropIndex(
name: "IX_Set_HBPO_SA_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_HBPO_SA_DETAIL");
migrationBuilder.DropIndex(
name: "IX_Set_HBPO_SA_DETAIL_MappingType",
table: "Set_HBPO_SA_DETAIL");
migrationBuilder.DropIndex(
name: "IX_Set_HBPO_SA_DETAIL_Version",
table: "Set_HBPO_SA_DETAIL");
migrationBuilder.DropIndex(
name: "IX_Set_BBAC_SE_EDI_CustomerPartCodeNoSpace_PN",
table: "Set_BBAC_SE_EDI");
migrationBuilder.DropIndex(
name: "IX_Set_BBAC_SE_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_BBAC_SE_DETAIL");
migrationBuilder.DropIndex(
name: "IX_Set_BBAC_SA_DETAIL_CustomerPartCodeNoSpace_PN",
table: "Set_BBAC_SA_DETAIL");
migrationBuilder.DropIndex(
name: "IX_Set_BBAC_SA_DETAIL_MappingType",
table: "Set_BBAC_SA_DETAIL");
migrationBuilder.DropIndex(
name: "IX_Set_BBAC_SA_DETAIL_Version",
table: "Set_BBAC_SA_DETAIL");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
column: "ConcurrencyStamp",
value: "887aa288e05f486a9fc47cee5c16042c");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
column: "ConcurrencyStamp",
value: "beb2a2793d944668aa12b145a4fed0af");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
column: "ConcurrencyStamp",
value: "52f76a1d4eac41b5afcd13c54a5007a1");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
column: "ConcurrencyStamp",
value: "d24e993891c84beead44c675d352d17c");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
column: "ConcurrencyStamp",
value: "7ad9de79ed1942d58f8bdcf0f31a0182");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
column: "ConcurrencyStamp",
value: "897a0bf76eba4d298de6997ac5451ffa");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
column: "ConcurrencyStamp",
value: "8b0dcc505f594d2fae7a011bd3c9cb0b");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
column: "ConcurrencyStamp",
value: "72bea3403a0a4ca5be463389628ee6fd");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
column: "ConcurrencyStamp",
value: "2b4446c3583e4503b39f7b62d6f35701");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
column: "ConcurrencyStamp",
value: "650fa7efb97a48a98ae99655da5f10b5");
migrationBuilder.UpdateData(
table: "Set_JobItem",
keyColumn: "Id",
keyValue: new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
column: "ConcurrencyStamp",
value: "9db06d1651824c52ac748e70d9bdd22c");
}
}
}

42
code/src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Migrations/SettleAccountDbContextModelSnapshot.cs

@ -638,6 +638,12 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasIndex("BusinessType");
b.HasIndex("MappingType");
b.HasIndex("Version");
b.HasIndex("CustomerPartCodeNoSpace", "PN");
b.ToTable("Set_BBAC_SA_DETAIL");
});
@ -892,6 +898,8 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasIndex("IsHaveEdiData");
b.HasIndex("CustomerPartCodeNoSpace", "PN");
b.ToTable("Set_BBAC_SE_DETAIL");
});
@ -1010,6 +1018,8 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasIndex("IsHaveSeData");
b.HasIndex("CustomerPartCodeNoSpace", "PN");
b.ToTable("Set_BBAC_SE_EDI");
});
@ -1922,6 +1932,12 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasIndex("BusinessType");
b.HasIndex("MappingType");
b.HasIndex("Version");
b.HasIndex("CustomerPartCodeNoSpace", "PN");
b.ToTable("Set_HBPO_SA_DETAIL");
});
@ -2176,6 +2192,8 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasIndex("IsHaveEdiData");
b.HasIndex("CustomerPartCodeNoSpace", "PN");
b.ToTable("Set_HBPO_SE_DETAIL");
});
@ -2294,6 +2312,8 @@ namespace Win.Sfs.SettleAccount.Migrations
b.HasIndex("IsHaveSeData");
b.HasIndex("CustomerPartCodeNoSpace", "PN");
b.ToTable("Set_HBPO_SE_EDI");
});
@ -4689,7 +4709,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("ef3d8e8a-a88e-ca1f-e615-714c6bc48824"),
ConcurrencyStamp = "650fa7efb97a48a98ae99655da5f10b5",
ConcurrencyStamp = "1199edad1ea74d6ea16ed79c4d695306",
Cron = "0 0 8 26 *",
IsDisabled = false,
IsRunning = false,
@ -4699,7 +4719,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("185c5968-e02b-267e-db2f-225fccfc9716"),
ConcurrencyStamp = "887aa288e05f486a9fc47cee5c16042c",
ConcurrencyStamp = "a9b7c93f626040ad9263c02685f632fd",
Cron = "0 0/1 * * * ?",
IsDisabled = false,
IsRunning = false,
@ -4709,7 +4729,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("1bb02f67-ed05-6cc1-1507-502e8f6c7a31"),
ConcurrencyStamp = "beb2a2793d944668aa12b145a4fed0af",
ConcurrencyStamp = "9b2db87bd049489ea604914c36d72f21",
Cron = "0 0/1 * * * ?",
IsDisabled = false,
IsRunning = false,
@ -4719,7 +4739,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("b9b9c79f-4894-474b-4f67-b1ec121c41e5"),
ConcurrencyStamp = "8b0dcc505f594d2fae7a011bd3c9cb0b",
ConcurrencyStamp = "0ca8403cc0674c56b2e136103af08ebd",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4729,7 +4749,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("49b1da12-418c-544d-fe8b-be7e5b572452"),
ConcurrencyStamp = "52f76a1d4eac41b5afcd13c54a5007a1",
ConcurrencyStamp = "666f8653c5df429291d8f9bf340272ad",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4739,7 +4759,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("7a0dc087-a859-5863-eb6e-56f588bd779e"),
ConcurrencyStamp = "7ad9de79ed1942d58f8bdcf0f31a0182",
ConcurrencyStamp = "047259cc9d7a4f01b43465207f937bbe",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4749,7 +4769,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("6f68fc8f-b058-c3f4-e07d-722c61f3f7fa"),
ConcurrencyStamp = "d24e993891c84beead44c675d352d17c",
ConcurrencyStamp = "e80a3d92203642cca3d05f3c8b658d4d",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4759,7 +4779,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("f306b380-47e5-5c01-b902-67ca4113a8f4"),
ConcurrencyStamp = "9db06d1651824c52ac748e70d9bdd22c",
ConcurrencyStamp = "1573edbadee043c0a8f663bf5a8569b1",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4769,7 +4789,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("8f7dc23d-e2e9-3691-cfe9-545bb958e3f2"),
ConcurrencyStamp = "897a0bf76eba4d298de6997ac5451ffa",
ConcurrencyStamp = "40a18956b53248bfa975b313aa03b571",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4779,7 +4799,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("c1f71240-1b81-0107-8b23-ddc9811a3efe"),
ConcurrencyStamp = "2b4446c3583e4503b39f7b62d6f35701",
ConcurrencyStamp = "2f5fa52bb80b46b39eecb861a73c71f2",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,
@ -4789,7 +4809,7 @@ namespace Win.Sfs.SettleAccount.Migrations
new
{
Id = new Guid("c09c23ea-815f-1b43-4476-2365a8d9a60b"),
ConcurrencyStamp = "72bea3403a0a4ca5be463389628ee6fd",
ConcurrencyStamp = "682f0162c2c0488fa56edb41b89bc4ec",
Cron = "0 0/30 * * * ? ",
IsDisabled = false,
IsRunning = false,

Loading…
Cancel
Save