mirror of
http://112.124.100.131/huang.ze/ebiz-dify-ai.git
synced 2025-12-17 06:46:57 +08:00
fix: ensure db migration in docker entry script running with upgrade-db command for proper locking (#6946)
This commit is contained in:
@@ -4,7 +4,7 @@ set -e
|
|||||||
|
|
||||||
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
|
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
|
||||||
echo "Running migrations"
|
echo "Running migrations"
|
||||||
flask db upgrade
|
flask upgrade-db
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [[ "${MODE}" == "worker" ]]; then
|
if [[ "${MODE}" == "worker" ]]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user