From 1183eb40b3a3335075de908430f774a89466ea56 Mon Sep 17 00:00:00 2001 From: Carryall Date: Mon, 23 Oct 2023 16:35:38 +0700 Subject: [PATCH] [109] Change condition --- {{cookiecutter.app_name}}/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/{{cookiecutter.app_name}}/Makefile b/{{cookiecutter.app_name}}/Makefile index 3027f94..727bb47 100644 --- a/{{cookiecutter.app_name}}/Makefile +++ b/{{cookiecutter.app_name}}/Makefile @@ -13,10 +13,10 @@ env-teardown: db/migrate: make wait-for-postgres -ifneq ("$(wildcard $(database/migrations/.keep))","") - goose -dir database/migrations -table "migration_versions" postgres "$(DATABASE_URL)" up +ifeq ("$(wildcard $(database/migrations/.keep))","") + $(info NO migration files to run) else - $(info NO migration files to run) + goose -dir database/migrations -table "migration_versions" postgres "$(DATABASE_URL)" up endif db/rollback: