mirror of
https://github.com/bitwarden/server.git
synced 2026-02-04 16:13:12 +08:00
20 lines
393 B
PowerShell
20 lines
393 B
PowerShell
|
|
#!/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 ---"
|
||
|
|
}
|