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
parent
commit
178ccdf65b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  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