Browse Source
Add index for `NormalizedName` peroperty.
pull/18859/head
maliming
2 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
27 changed files with
82 additions and
9 deletions
-
modules/tenant-management/src/Volo.Abp.TenantManagement.EntityFrameworkCore/Volo/Abp/TenantManagement/EntityFrameworkCore/AbpTenantManagementDbContextModelCreatingExtensions.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20240125061235_Initial.Designer.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/20240125061235_Initial.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20240125061501_Initial.Designer.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/20240125061501_Initial.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Blazor.WebAssembly/Server/Migrations/MyProjectNameDbContextModelSnapshot.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Migrations/20240125061101_Initial.Designer.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Migrations/20240125061101_Initial.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Host/Migrations/MyProjectNameDbContextModelSnapshot.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/Migrations/20240125061143_Initial.Designer.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/Migrations/20240125061143_Initial.cs
-
templates/app-nolayers/aspnet-core/MyCompanyName.MyProjectName.Mvc/Migrations/MyProjectNameDbContextModelSnapshot.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore/Migrations/20240125061248_Initial.Designer.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore/Migrations/20240125061248_Initial.cs
-
templates/app/aspnet-core/src/MyCompanyName.MyProjectName.EntityFrameworkCore/Migrations/MyProjectNameDbContextModelSnapshot.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/Migrations/20240125061344_Initial.Designer.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/Migrations/20240125061344_Initial.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.AuthServer/Migrations/AuthServerDbContextModelSnapshot.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Server.Host/Migrations/20240125061321_Initial.Designer.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Server.Host/Migrations/20240125061321_Initial.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Blazor.Server.Host/Migrations/UnifiedDbContextModelSnapshot.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host/Migrations/20240125061400_Initial.Designer.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.HttpApi.Host/Migrations/20240125061400_Initial.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Migrations/20240125061424_Initial.Designer.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Migrations/20240125061424_Initial.cs
-
templates/module/aspnet-core/host/MyCompanyName.MyProjectName.Web.Unified/Migrations/UnifiedDbContextModelSnapshot.cs
|
|
|
@ -28,6 +28,7 @@ public static class AbpTenantManagementDbContextModelCreatingExtensions |
|
|
|
b.HasMany(u => u.ConnectionStrings).WithOne().HasForeignKey(uc => uc.TenantId).IsRequired(); |
|
|
|
|
|
|
|
b.HasIndex(u => u.Name); |
|
|
|
b.HasIndex(u => u.NormalizedName); |
|
|
|
|
|
|
|
b.ApplyObjectExtensionMappings(); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(MyProjectNameDbContext))] |
|
|
|
[Migration("20240110051639_Initial")] |
|
|
|
[Migration("20240125061235_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1696,6 +1696,8 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -914,6 +914,11 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1693,6 +1693,8 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(MyProjectNameDbContext))] |
|
|
|
[Migration("20240110051838_Initial")] |
|
|
|
[Migration("20240125061501_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1696,6 +1696,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -914,6 +914,11 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1693,6 +1693,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Host.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(MyProjectNameDbContext))] |
|
|
|
[Migration("20240110051553_Initial")] |
|
|
|
[Migration("20240125061101_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1696,6 +1696,8 @@ namespace MyCompanyName.MyProjectName.Host.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -914,6 +914,11 @@ namespace MyCompanyName.MyProjectName.Host.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1693,6 +1693,8 @@ namespace MyCompanyName.MyProjectName.Host.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Mvc.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(MyProjectNameDbContext))] |
|
|
|
[Migration("20240110051615_Initial")] |
|
|
|
[Migration("20240125061143_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1696,6 +1696,8 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -914,6 +914,11 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1693,6 +1693,8 @@ namespace MyCompanyName.MyProjectName.Mvc.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(MyProjectNameDbContext))] |
|
|
|
[Migration("20240110051649_Initial")] |
|
|
|
[Migration("20240125061248_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1748,6 +1748,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -940,6 +940,11 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1745,6 +1745,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(AuthServerDbContext))] |
|
|
|
[Migration("20240110051734_Initial")] |
|
|
|
[Migration("20240125061344_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1696,6 +1696,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -914,6 +914,11 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1693,6 +1693,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Blazor.Server.Host.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(UnifiedDbContext))] |
|
|
|
[Migration("20240110051713_Initial")] |
|
|
|
[Migration("20240125061321_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1337,6 +1337,8 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Host.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -778,6 +778,11 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Host.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1334,6 +1334,8 @@ namespace MyCompanyName.MyProjectName.Blazor.Server.Host.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
@ -12,7 +12,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(MyProjectNameHttpApiHostMigrationsDbContext))] |
|
|
|
[Migration("20240110051748_Initial")] |
|
|
|
[Migration("20240125061400_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -13,7 +13,7 @@ using Volo.Abp.EntityFrameworkCore; |
|
|
|
namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
{ |
|
|
|
[DbContext(typeof(UnifiedDbContext))] |
|
|
|
[Migration("20240110051810_Initial")] |
|
|
|
[Migration("20240125061424_Initial")] |
|
|
|
partial class Initial |
|
|
|
{ |
|
|
|
/// <inheritdoc />
|
|
|
|
@ -1337,6 +1337,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
@ -778,6 +778,11 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
table: "AbpTenants", |
|
|
|
column: "Name"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpTenants_NormalizedName", |
|
|
|
table: "AbpTenants", |
|
|
|
column: "NormalizedName"); |
|
|
|
|
|
|
|
migrationBuilder.CreateIndex( |
|
|
|
name: "IX_AbpUserClaims_UserId", |
|
|
|
table: "AbpUserClaims", |
|
|
|
@ -1334,6 +1334,8 @@ namespace MyCompanyName.MyProjectName.Migrations |
|
|
|
|
|
|
|
b.HasIndex("Name"); |
|
|
|
|
|
|
|
b.HasIndex("NormalizedName"); |
|
|
|
|
|
|
|
b.ToTable("AbpTenants", (string)null); |
|
|
|
}); |
|
|
|
|
|
|
|
|