DB QOL stuff, but not breaking the migrations now (#5086)

This commit is contained in:
Saphire Lattice
2021-10-31 21:18:01 +07:00
committed by GitHub
parent 6cb6432cae
commit eb567dc0bb
8 changed files with 482 additions and 119 deletions

View File

@@ -0,0 +1,9 @@
#!/usr/bin/env bash
if [ -z "$1" ] ; then
echo "Must specify migration name"
exit 1
fi
dotnet ef migrations add --context SqliteServerDbContext -o Migrations/Sqlite "$1"
dotnet ef migrations add --context PostgresServerDbContext -o Migrations/Postgres "$1"