fix(Makefile): moved migrations to db/migrations/ dir
This commit is contained in:
parent
91adc7f414
commit
6c2da08375
1 changed files with 5 additions and 5 deletions
10
Makefile
10
Makefile
|
|
@ -7,23 +7,23 @@ POSTGRES_URL="pgx5://yggdrasil_user:yggdrasil@localhost:5432/yggdrasil?sslmode=d
|
||||||
|
|
||||||
.PHONY: create-migration
|
.PHONY: create-migration
|
||||||
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
|
.PHONY: local-migrate-up
|
||||||
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
|
.PHONY: local-migrate-force
|
||||||
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
|
.PHONY: local-migrate-down
|
||||||
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
|
.PHONY: local-migrate-drop
|
||||||
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
|
.PHONY: local-db-seed
|
||||||
local-db-seed:
|
local-db-seed:
|
||||||
|
|
|
||||||
Reference in a new issue