feat(k8s): Add pure migration option for `api` component (#22750)

pull/22247/merge
Boris Polonsky 7 months ago committed by GitHub
parent 0731db8c22
commit e64e7563f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -5,6 +5,11 @@ set -e
if [[ "${MIGRATION_ENABLED}" == "true" ]]; then if [[ "${MIGRATION_ENABLED}" == "true" ]]; then
echo "Running migrations" echo "Running migrations"
flask upgrade-db flask upgrade-db
# Pure migration mode
if [[ "${MODE}" == "migration" ]]; then
echo "Migration completed, exiting normally"
exit 0
fi
fi fi
if [[ "${MODE}" == "worker" ]]; then if [[ "${MODE}" == "worker" ]]; then

Loading…
Cancel
Save