fix: ensure db migration in docker entry script running with `upgrade-db` command for proper locking (#6946)

pull/6953/head
Bowen Liang 2 years ago committed by GitHub
parent 5a7fc8cd8c
commit f656e1bae2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

Loading…
Cancel
Save