From 665845a7e5050a57e6dee05a3055e2a973e1e108 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Tue, 13 Jun 2017 21:45:15 -0400 Subject: Migrations --- Makefile | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2