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