Django 6 · Database and migrations

See a migration's SQL

Print the SQL a migration would run, without running it.

python manage.py sqlmigrate blog 0001

Official Django 6 documentation

More database and migrations commands

All database and migrations commands · Django 6 cheatsheet

Was this page helpful?