From 0b5aa85da20544b1594d73da70d41992f267df53 Mon Sep 17 00:00:00 2001 From: florimondmanca Date: Tue, 19 Dec 2023 17:41:33 +0100 Subject: [PATCH] Fix database-test-init with --if-exists --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 7fd7e522..64a17963 100644 --- a/Makefile +++ b/Makefile @@ -80,7 +80,7 @@ database-migrate: ## Database migrations npm run migration:migrate database-test-init: up ## Initialize test database - make compose CMD="exec -T database dropdb permacoop_hotwire_test" + make compose CMD="exec -T database dropdb --if-exists permacoop_hotwire_test" make compose CMD="exec -T database createdb permacoop_hotwire_test" make database-migrate DATABASE_NAME=permacoop_hotwire_test make database-seed DATABASE_NAME=permacoop_hotwire_test