aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 4e013e1..a1fabae 100644
--- a/Makefile
+++ b/Makefile
@@ -15,11 +15,13 @@ psql: up
docker compose exec db psql --user=postgres albatross
.PHONY: sqldef-dryrun
-sqldef-dryrun:
+sqldef-dryrun: down build
+ docker compose up -d db
docker compose run --no-TTY tools psqldef --dry-run < ./backend/schema.sql
.PHONY: sqldef
-sqldef:
+sqldef: down build
+ docker compose up -d db
docker compose run --no-TTY tools psqldef < ./backend/schema.sql
.PHONY: sqlc