diff --git a/api/docker/entrypoint.sh b/api/docker/entrypoint.sh index 59d652c11b..4de9a25c2f 100755 --- a/api/docker/entrypoint.sh +++ b/api/docker/entrypoint.sh @@ -5,6 +5,11 @@ set -e if [[ "${MIGRATION_ENABLED}" == "true" ]]; then echo "Running migrations" flask upgrade-db + # Pure migration mode + if [[ "${MODE}" == "migration" ]]; then + echo "Migration completed, exiting normally" + exit 0 + fi fi if [[ "${MODE}" == "worker" ]]; then