1
Fork 0
mirror of https://gitlab.com/Kwoth/nadekobot.git synced 2024-10-02 20:13:13 +00:00
nadekobot/migrate.ps1

10 lines
325 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
dotnet ef migrations add $migrationName -c PostgreSqlContext
dotnet ef migrations add $migrationName -c MysqlContext
}