aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 0fa6116..759e09f 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+DB=sslmode=disable dbname=lastfm
+
all: kill build start
build:
@@ -12,3 +14,12 @@ start:
watch:
watchman-make -p '*.go' 'templates/*.tmpl' -t all
+
+up:
+ goose -dir migrations postgres "$(DB)" up
+
+down:
+ goose -dir migrations postgres "$(DB)" down
+
+status:
+ goose -dir migrations postgres "$(DB)" status