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}
|
_direction=${1:-up}
|
||||||
case "$_env" in
|
case "$_env" in
|
||||||
--all)
|
--all)
|
||||||
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="./migrations/postgres" goose $_direction
|
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="migrations/postgres" goose $_direction
|
||||||
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="./migrations/sqlite" goose $_direction
|
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="migrations/sqlite" goose $_direction
|
||||||
;;
|
;;
|
||||||
dev)
|
dev)
|
||||||
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="./migrations/sqlite" goose $_direction
|
GOOSE_DRIVER=sqlite GOOSE_MIGRATION_DIR="migrations/sqlite" goose $_direction
|
||||||
;;
|
;;
|
||||||
prod)
|
prod)
|
||||||
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="./migrations/postgres" goose $_direction
|
GOOSE_DRIVER=postgres GOOSE_MIGRATION_DIR="migrations/postgres" goose $_direction
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user