2024-09-05 09:52:24 +00:00
|
|
|
connect:
|
|
|
|
mysql --user=root --password=$(shell pass show sevenkeys/mysql)
|
2024-11-25 15:03:16 +00:00
|
|
|
|
2024-09-12 12:20:24 +00:00
|
|
|
dump:
|
|
|
|
mysqldump --user=root --password=$(shell pass show sevenkeys/mysql) sevenkeys >sevenkeys.sql
|
2024-11-25 15:03:16 +00:00
|
|
|
|
|
|
|
dev_create:
|
2024-11-25 17:13:50 +00:00
|
|
|
goose -dir database/migrations/ mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys_development?parseTime=true&multiStatements=true" up
|
2024-11-25 15:03:16 +00:00
|
|
|
dev_rollback:
|
|
|
|
rm -rf cache/
|
2024-11-25 17:13:50 +00:00
|
|
|
goose -dir database/migrations/ mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys_development?parseTime=true&multiStatements=true" reset
|
2024-11-25 15:03:16 +00:00
|
|
|
|
|
|
|
prod_create:
|
2024-11-25 17:13:50 +00:00
|
|
|
goose -dir database/migrations/ mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys?parseTime=true&multiStatements=true" up
|
2024-11-25 15:03:16 +00:00
|
|
|
prod_rollback:
|
|
|
|
rm -rf cache/
|
2024-11-25 17:13:50 +00:00
|
|
|
goose -dir database/migrations/ mysql "root:$(shell pass show sevenkeys/mysql)@/sevenkeys?parseTime=true&multiStatements=true" reset
|