forked from adam/discord-bot-shtik
db recreate
This commit is contained in:
parent
4c06a74410
commit
8b857b82c9
@ -24,6 +24,11 @@ case "$1" in
|
|||||||
dotnet ef database update --connection "$connnectionstr"
|
dotnet ef database update --connection "$connnectionstr"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
"db-fullreset")
|
||||||
|
sudo -u postgres psql -c "drop database ${servicename}_dev;"
|
||||||
|
sudo -u postgres psql -c "delete user $servicename"
|
||||||
|
$0 "initial"
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown command '$1', try 'initial'"
|
echo "Unknown command '$1', try 'initial'"
|
||||||
;;
|
;;
|
||||||
|
Loading…
Reference in New Issue
Block a user