aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-13 21:45:15 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-13 21:45:15 -0400
commit665845a7e5050a57e6dee05a3055e2a973e1e108 (patch)
tree79fd6ef776b56fd73489deed37ccf2768f128c6f /Makefile
parent1d8793f4f84fd5c88dd36eedb83e0c06c24f7477 (diff)
downloadlastfm-api-665845a7e5050a57e6dee05a3055e2a973e1e108.tar.gz
Migrations
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