From 6c2da083750a25bb2c295b43bf1b4fca04c1c3cd Mon Sep 17 00:00:00 2001 From: Vojtech Mares Date: Wed, 26 Jun 2024 22:39:41 +0200 Subject: [PATCH] fix(Makefile): moved migrations to db/migrations/ dir --- Makefile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d379326..2b042cf 100644 --- a/Makefile +++ b/Makefile @@ -7,23 +7,23 @@ POSTGRES_URL="pgx5://yggdrasil_user:yggdrasil@localhost:5432/yggdrasil?sslmode=d .PHONY: create-migration create-migration: - migrate create -ext sql -dir ./migrations -seq -digits 3 ${name} + migrate create -ext sql -dir ./db/migrations -seq -digits 3 ${name} .PHONY: local-migrate-up local-migrate-up: - migrate -database ${POSTGRES_URL} -path ./migrations up + migrate -database ${POSTGRES_URL} -path ./db/migrations up .PHONY: local-migrate-force local-migrate-force: - migrate -database ${POSTGRES_URL} -path ./migrations force + migrate -database ${POSTGRES_URL} -path ./db/migrations force .PHONY: local-migrate-down local-migrate-down: - migrate -database ${POSTGRES_URL} -path ./migrations down + migrate -database ${POSTGRES_URL} -path ./db/migrations down .PHONY: local-migrate-drop local-migrate-drop: - migrate -database ${POSTGRES_URL} -path ./migrations drop -f + migrate -database ${POSTGRES_URL} -path ./db/migrations drop -f .PHONY: local-db-seed local-db-seed: