feat: add flask upgrade-db command for running db upgrade with redis lock (#5333)

This commit is contained in:
Bowen Liang 2024-06-18 13:26:01 +08:00 committed by GitHub
commit 5f0ce5811a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 5 deletions

View file

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