mirror of
https://git.mirrors.martin98.com/https://github.com/langgenius/dify.git
synced 2025-08-14 21:45:56 +08:00
fix: ensure db migration in docker entry script running with upgrade-db
command for proper locking (#6946)
This commit is contained in:
parent
5a7fc8cd8c
commit
f656e1bae2
@ -4,7 +4,7 @@ set -e
|
||||
|
||||
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
|
||||
echo "Running migrations"
|
||||
flask db upgrade
|
||||
flask upgrade-db
|
||||
fi
|
||||
|
||||
if [[ "${MODE}" == "worker" ]]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user