Apply migrations by default when DJANGO_PERFORM_MIGRATIONS is unset

This commit is contained in:
Roland Geider
2026-10-08 17:07:25 +02:00
parent ffd780cdcc
commit e9215130d3

View File

@@ -36,7 +36,7 @@ then
fi
# Perform database migrations
if [[ "$DJANGO_PERFORM_MIGRATIONS" == "True" ]];
if [[ "${DJANGO_PERFORM_MIGRATIONS:-True}" == "True" ]];
then
echo "Performing database migrations"
if ! python3 manage.py migrate; then