db recreate

This commit is contained in:
adam 2025-01-05 21:59:39 -05:00
parent 4c06a74410
commit 8b857b82c9

View File

@ -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'"
;; ;;