WIP: EOL
This commit is contained in:
parent
7ed1e05284
commit
49e05cac10
23 changed files with 613 additions and 253 deletions
18
Makefile
18
Makefile
|
|
@ -1,3 +1,21 @@
|
|||
.PHONY: generate
|
||||
generate:
|
||||
go generate .
|
||||
|
||||
POSTGRES_URL="postgres://official:backoffice@localhost:5432/backoffice_dev?sslmode=disable"
|
||||
|
||||
.PHONY: local-migrate-up
|
||||
local-migrate-up:
|
||||
migrate -database ${POSTGRES_URL} -path ./db/migrations up
|
||||
|
||||
.PHONY: local-migrate-force
|
||||
local-migrate-force:
|
||||
migrate -database ${POSTGRES_URL} -path ./db/migrations force
|
||||
|
||||
.PHONY: local-migrate-down
|
||||
local-migrate-down:
|
||||
migrate -database ${POSTGRES_URL} -path ./db/migrations down
|
||||
|
||||
.PHONY: local-migrate-drop
|
||||
local-migrate-drop:
|
||||
migrate -database ${POSTGRES_URL} -path ./db/migrations drop -f
|
||||
|
|
|
|||
Reference in a new issue