From f98f242ec1a17adb325196af6df5a78f327b8dd2 Mon Sep 17 00:00:00 2001 From: Drew Bednar Date: Mon, 9 Jun 2025 18:02:49 -0400 Subject: [PATCH] Adding helper targets to migrate the db --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 2164f64..4c2a9a8 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,5 @@ +PG_URI?="" + start-local: mkdir -p ./.pg_data && \ chown $$(id -u):$$(id -g) ./.pg_data && \ @@ -7,3 +9,11 @@ start-local: stop-local: docker compose down .PHONY: stop-local + +river-migrate: + river migrate-up --database-url $(PG_URI) +.PHONY: river-migrate + +db-connect: + psql $(PG_URI) +.PHONY: db-connect