diff --git a/Services/Website/Makefile b/Services/Website/Makefile index a81fb8a..35fd8b7 100644 --- a/Services/Website/Makefile +++ b/Services/Website/Makefile @@ -96,15 +96,19 @@ db-shell: ## Open a SQL shell on the local database instance --dbname=$(or $(DATABASE_NAME),loud) .PHONY: db-unmount -db-unmount: ## Stop and remove the local database instance (keeps the data volume) +db-unmount: ## Stop and remove the local database instance while keeping its data @docker compose \ --profile database down postgres .PHONY: db-reset -db-reset: ## Stop and remove the local database instance and delete its data volume +db-reset: ## Stop and remove the local database instance, then delete its data @docker compose \ --profile database down postgres \ --volumes + @if [ -d Tests/DB ]; then \ + rm -rf Tests/DB; \ + mkdir -p Tests/DB; \ + fi # --- Assets minification ------------------------------------------------------