From 8b857b82c973ee2eb9d235224d7cc254108aa251 Mon Sep 17 00:00:00 2001 From: adam Date: Sun, 5 Jan 2025 21:59:39 -0500 Subject: [PATCH] db recreate --- devuitls.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/devuitls.sh b/devuitls.sh index 0445b36..5c603de 100755 --- a/devuitls.sh +++ b/devuitls.sh @@ -24,6 +24,11 @@ case "$1" in 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'" ;;