13 lines
296 B
PowerShell
Executable File
13 lines
296 B
PowerShell
Executable File
#!/usr/bin/env pwsh
|
|
|
|
param([String]$name)
|
|
|
|
if ($name -eq "")
|
|
{
|
|
Write-Error "must specify migration name"
|
|
exit
|
|
}
|
|
|
|
dotnet ef migrations add --context SqliteServerDbContext -o Migrations/Sqlite $name
|
|
dotnet ef migrations add --context PostgresServerDbContext -o Migrations/Postgres $name
|