fix(migration): create site stuff before socialaccount (#7999)

This commit is contained in:
Adrián Jesús Peña Rodríguez
2025-06-11 13:34:21 +02:00
committed by GitHub
parent c17129afe3
commit e042445ecf
4 changed files with 97 additions and 0 deletions

View File

@@ -3,6 +3,10 @@
apply_migrations() {
echo "Applying database migrations..."
# Fix Inconsistent migration history after adding sites app
poetry run python manage.py check_and_fix_socialaccount_sites_migration --database admin
poetry run python manage.py migrate --database admin
}