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
parent 9b7fdadce4
commit 5f0ce5811a
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