From 7d0bba3a29bf1ae562d5f1ca479ddfb05ea247c9 Mon Sep 17 00:00:00 2001 From: SmithThe4th Date: Thu, 23 Feb 2023 12:01:01 -0500 Subject: [PATCH] Improve EF Migration Workflow by Starting Required Docker Services Automatically (#2725) * Added check to detremine if certain docker services are running and if not starts them * used to docker no recreate flag to simplify the process --- dev/ef_migrate.ps1 | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/dev/ef_migrate.ps1 b/dev/ef_migrate.ps1 index 97e9939344..14cf13088b 100644 --- a/dev/ef_migrate.ps1 +++ b/dev/ef_migrate.ps1 @@ -4,6 +4,13 @@ param ( $Name ) +# DB service provider name +$service = "mysql" + +Write-Output "--- Attempting to start $service service ---" + +docker-compose --profile $service up -d --no-recreate + dotnet tool restore $providers = @{