Browse Source

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

Bowen Liang 9 tháng trước cách đây
mục cha
commit
f656e1bae2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      api/docker/entrypoint.sh

+ 1 - 1
api/docker/entrypoint.sh

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