Browse Source
Merge pull request #919 from colinin/fix-migrations
fix(migrations): fix #917
pull/924/head
yx lin
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with
6 additions and
6 deletions
-
aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/AuthServerDbMigrationService.cs
-
aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/BackendAdminDbMigrationService.cs
-
aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/IdentityServerDbMigrationService.cs
-
aspnet-core/migrations/LY.MicroService.LocalizationManagement.EntityFrameworkCore/LocalizationManagementDbMigrationService.cs
-
aspnet-core/migrations/LY.MicroService.Platform.EntityFrameworkCore/PlatformDbMigrationService.cs
-
aspnet-core/migrations/LY.MicroService.RealtimeMessage.EntityFrameworkCore/RealtimeMessageDbMigrationService.cs
|
|
|
@ -51,7 +51,7 @@ public class AuthServerDbMigrationService : EfCoreRuntimeDbMigratorBase<AuthServ |
|
|
|
|
|
|
|
protected async override Task SeedAsync() |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Executing {(CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
|
|
|
|
await DataSeeder.SeedAsync(CurrentTenant.Id); |
|
|
|
} |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ public class BackendAdminDbMigrationService : EfCoreRuntimeDbMigratorBase<Backen |
|
|
|
|
|
|
|
protected async override Task SeedAsync() |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Executing {(CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
|
|
|
|
await DataSeeder.SeedAsync(CurrentTenant.Id); |
|
|
|
} |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ public class IdentityServerDbMigrationService : EfCoreRuntimeDbMigratorBase<Iden |
|
|
|
|
|
|
|
protected async override Task SeedAsync() |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Executing {(CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
|
|
|
|
await DataSeeder.SeedAsync(CurrentTenant.Id); |
|
|
|
} |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ public class LocalizationManagementDbMigrationService : EfCoreRuntimeDbMigratorB |
|
|
|
|
|
|
|
protected async override Task SeedAsync() |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Executing {(CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
|
|
|
|
await DataSeeder.SeedAsync(CurrentTenant.Id); |
|
|
|
} |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ public class PlatformDbMigrationService : EfCoreRuntimeDbMigratorBase<PlatformMi |
|
|
|
|
|
|
|
protected async override Task SeedAsync() |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Executing {(CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
|
|
|
|
await DataSeeder.SeedAsync(CurrentTenant.Id); |
|
|
|
} |
|
|
|
|
|
|
|
@ -51,7 +51,7 @@ public class RealtimeMessageDbMigrationService : EfCoreRuntimeDbMigratorBase<Rea |
|
|
|
|
|
|
|
protected async override Task SeedAsync() |
|
|
|
{ |
|
|
|
Logger.LogInformation($"Executing {(CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
Logger.LogInformation($"Executing {(!CurrentTenant.IsAvailable ? "host" : CurrentTenant.Name ?? CurrentTenant.GetId().ToString())} database seed..."); |
|
|
|
|
|
|
|
await DataSeeder.SeedAsync(CurrentTenant.Id); |
|
|
|
} |
|
|
|
|