From d2bc986506cc2538f1cf53a4ac155275c5d8f3fd Mon Sep 17 00:00:00 2001 From: The Magician Date: Mon, 25 Nov 2024 15:03:16 +0000 Subject: [PATCH] Add new Make targets for goose --- sevenkeys/Makefile | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/sevenkeys/Makefile b/sevenkeys/Makefile index da6347a..ca57fd2 100644 --- a/sevenkeys/Makefile +++ b/sevenkeys/Makefile @@ -1,9 +1,17 @@ -createdb: - mysql --user=root --password=$(shell pass show sevenkeys/mysql) sevenkeys.sql + +dev_create: + goose mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys_development?parseTime=true" up +dev_rollback: + rm -rf cache/ + goose mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys_development?parseTime=true" reset + +prod_create: + goose mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys?parseTime=true" up +prod_rollback: + rm -rf cache/ + goose mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys?parseTime=true" reset