9 lines
409 B
PowerShell
9 lines
409 B
PowerShell
|
if ($args.Length -eq 0) {
|
||
|
Write-Host "Please provide a migration name." -ForegroundColor Red
|
||
|
}
|
||
|
else {
|
||
|
$migrationName = $args[0]
|
||
|
dotnet ef migrations add $migrationName -c SqliteContext -p src/EllieBot/EllieBot.csproj
|
||
|
dotnet ef migrations add $migrationName -c PostgreSqlContext -p src/EllieBot/EllieBot.csproj
|
||
|
dotnet ef migrations add $migrationName -c MysqlContext -p src/EllieBot/EllieBot.csproj
|
||
|
}
|