2024-06-18 11:48:54 +00:00
|
|
|
if ($args.Length -eq 0) {
|
|
|
|
Write-Host "Please provide a migration name." -ForegroundColor Red
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
$migrationName = $args[0]
|
2024-06-19 05:22:20 +00:00
|
|
|
dotnet ef migrations add $migrationName -o Migrations/Mysql -c SqliteContext -p src/EllieBot/EllieBot.csproj
|
|
|
|
dotnet ef migrations add $migrationName -o Migrations/PostgreSql -c PostgreSqlContext -p src/EllieBot/EllieBot.csproj
|
2024-06-18 11:48:54 +00:00
|
|
|
}
|