fix: calls to goose were using incorrect migration dir path
This commit is contained in:
parent
ea85c51f5a
commit
1ddf8f333e
8
bin/app
8
bin/app
@ -262,14 +262,14 @@ __migrate() {
|
||||
_direction=${1:-up}
|
||||
case "$_env" in
|
||||
--all)
|
||||
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="./migrations/postgres" goose $_direction
|
||||
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="./migrations/sqlite" goose $_direction
|
||||
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="migrations/postgres" goose $_direction
|
||||
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="migrations/sqlite" goose $_direction
|
||||
;;
|
||||
dev)
|
||||
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="./migrations/sqlite" goose $_direction
|
||||
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="migrations/sqlite" goose $_direction
|
||||
;;
|
||||
prod)
|
||||
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="./migrations/postgres" goose $_direction
|
||||
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="migrations/postgres" goose $_direction
|
||||
;;
|
||||
esac
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user