wynn/Makefile
a b0a5939eec
All checks were successful
commit-tag / commit-tag-image (map[context:./migrations file:./migrations/Dockerfile name:migrations]) (push) Successful in 17s
commit-tag / commit-tag-image (map[context:./ts file:./ts/Dockerfile name:ts]) (push) Successful in 1m45s
noot
2025-03-02 18:18:02 -06:00

10 lines
263 B
Makefile

.PHONY: migrate tern
tern:
@echo "running tern $(ARGS)"
@cd migrations && PGUSER=postgres PGPASSWORD=postgres PGHOST=127.0.0.1 PGPORT=54327 PGDATABASE=postgres tern $(ARGS)
migrate: $(shell find migrations -type f -name "*.sql")
$(MAKE) tern ARGS="migrate"