Browse Source

fix(migrations): fix #917

pull/919/head
colin 2 years ago
parent
commit
7553706635
  1. 2
      aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/AuthServerDbMigrationService.cs
  2. 2
      aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/BackendAdminDbMigrationService.cs
  3. 2
      aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/IdentityServerDbMigrationService.cs
  4. 2
      aspnet-core/migrations/LY.MicroService.LocalizationManagement.EntityFrameworkCore/LocalizationManagementDbMigrationService.cs
  5. 2
      aspnet-core/migrations/LY.MicroService.Platform.EntityFrameworkCore/PlatformDbMigrationService.cs
  6. 2
      aspnet-core/migrations/LY.MicroService.RealtimeMessage.EntityFrameworkCore/RealtimeMessageDbMigrationService.cs

2
aspnet-core/migrations/LY.MicroService.AuthServer.EntityFrameworkCore/AuthServerDbMigrationService.cs

@ -51,7 +51,7 @@ public class AuthServerDbMigrationService : EfCoreRuntimeDbMigratorBase<AuthServ
protected async override Task SeedAsync() 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); await DataSeeder.SeedAsync(CurrentTenant.Id);
} }

2
aspnet-core/migrations/LY.MicroService.BackendAdmin.EntityFrameworkCore/BackendAdminDbMigrationService.cs

@ -51,7 +51,7 @@ public class BackendAdminDbMigrationService : EfCoreRuntimeDbMigratorBase<Backen
protected async override Task SeedAsync() 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); await DataSeeder.SeedAsync(CurrentTenant.Id);
} }

2
aspnet-core/migrations/LY.MicroService.IdentityServer.EntityFrameworkCore/IdentityServerDbMigrationService.cs

@ -51,7 +51,7 @@ public class IdentityServerDbMigrationService : EfCoreRuntimeDbMigratorBase<Iden
protected async override Task SeedAsync() 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); await DataSeeder.SeedAsync(CurrentTenant.Id);
} }

2
aspnet-core/migrations/LY.MicroService.LocalizationManagement.EntityFrameworkCore/LocalizationManagementDbMigrationService.cs

@ -51,7 +51,7 @@ public class LocalizationManagementDbMigrationService : EfCoreRuntimeDbMigratorB
protected async override Task SeedAsync() 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); await DataSeeder.SeedAsync(CurrentTenant.Id);
} }

2
aspnet-core/migrations/LY.MicroService.Platform.EntityFrameworkCore/PlatformDbMigrationService.cs

@ -51,7 +51,7 @@ public class PlatformDbMigrationService : EfCoreRuntimeDbMigratorBase<PlatformMi
protected async override Task SeedAsync() 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); await DataSeeder.SeedAsync(CurrentTenant.Id);
} }

2
aspnet-core/migrations/LY.MicroService.RealtimeMessage.EntityFrameworkCore/RealtimeMessageDbMigrationService.cs

@ -51,7 +51,7 @@ public class RealtimeMessageDbMigrationService : EfCoreRuntimeDbMigratorBase<Rea
protected async override Task SeedAsync() 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); await DataSeeder.SeedAsync(CurrentTenant.Id);
} }

Loading…
Cancel
Save