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