diff --git a/dev/ef_migrate.ps1 b/dev/ef_migrate.ps1 new file mode 100644 index 000000000..97e993934 --- /dev/null +++ b/dev/ef_migrate.ps1 @@ -0,0 +1,19 @@ +#!/usr/bin/env pwsh +param ( + [Parameter(Mandatory)] + $Name +) + +dotnet tool restore + +$providers = @{ + MySql = "../util/MySqlMigrations" + Postgres = "../util/PostgresMigrations" + Sqlite = "../util/SqliteMigrations" +} + +foreach ($key in $providers.keys) { + Write-Output "--- START $key ---" + dotnet ef migrations add $Name -s $providers[$key] + Write-Output "--- END $key ---" +}