Browse Source
Merge pull request #832 from colinin/fix-migrations
fix(migrations): update build-aspnetcore-ef-update.ps1
pull/840/head
yx lin
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
14 additions and
3 deletions
-
build/build-aspnetcore-common.ps1
-
build/build-aspnetcore-ef-update.ps1
|
|
|
@ -25,6 +25,17 @@ $solutionArray += [PsObject]@{ File = $rootFolder + "/../aspnet-core/LINGYUN.Mic |
|
|
|
$solutionArray += [PsObject]@{ File = $rootFolder + "/../aspnet-core/LINGYUN.MicroService.SingleProject.sln" } |
|
|
|
$solutionArray += [PsObject]@{ File = $rootFolder + "/../gateways/internal/LINGYUN.MicroService.Internal.ApiGateway/LINGYUN.MicroService.Internal.ApiGateway.sln" } |
|
|
|
|
|
|
|
[PsObject[]]$migrationArray = @() |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.BackendAdmin.DbMigrator" } |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.Platform.DbMigrator" } |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.LocalizationManagement.DbMigrator" } |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.RealtimeMessage.DbMigrator" } |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.IdentityServer.DbMigrator" } |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.TaskManagement.DbMigrator" } |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.AuthServer.DbMigrator" } |
|
|
|
$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.WebhooksManagement.DbMigrator" } |
|
|
|
#$migrationArray += [PsObject]@{ Path = $rootFolder + "/../aspnet-core/migrations/LY.MicroService.Applications.Single.DbMigrator" } |
|
|
|
|
|
|
|
Write-host "" |
|
|
|
Write-host ":::::::::::::: !!! You are in development mode !!! ::::::::::::::" -ForegroundColor red -BackgroundColor yellow |
|
|
|
Write-host "" |
|
|
|
@ -1,9 +1,9 @@ |
|
|
|
. "./build-aspnetcore-common.ps1" |
|
|
|
|
|
|
|
# Build all solutions |
|
|
|
foreach ($service in $serviceArray) { |
|
|
|
Set-Location $service.Path |
|
|
|
dotnet ef database update |
|
|
|
foreach ($migration in $migrationArray) { |
|
|
|
Set-Location $migration.Path |
|
|
|
dotnet run |
|
|
|
} |
|
|
|
|
|
|
|
Set-Location $rootFolder |