1
0
Fork 0

fix(Makefile): moved migrations to db/migrations/ dir

This commit is contained in:
Vojtěch Mareš 2024-06-26 22:39:41 +02:00
parent 91adc7f414
commit 6c2da08375
Signed by: vojtech.mares
GPG key ID: C6827B976F17240D

View file

@ -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: