mirror of
https://github.com/C9Glax/tranga.git
synced 2025-10-17 10:50:45 +02:00
This commit is contained in:
10
CreateMigrations.sh
Executable file
10
CreateMigrations.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/sh
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 <migrationname>"
|
||||
exit 1
|
||||
fi
|
||||
cd API || exit
|
||||
dotnet ef migrations add $1 --context MangaContext --output-dir Migrations/Manga
|
||||
dotnet ef migrations add $1 --context LibraryContext --output-dir Migrations/Library
|
||||
dotnet ef migrations add $1 --context NotificationsContext --output-dir Migrations/Notifications
|
||||
dotnet ef migrations add $1 --context ActionsContext --output-dir Migrations/Actions
|
Reference in New Issue
Block a user