Which command shows the SQL a migration will execute without running it?
- A python manage.py showmigrations
- B python manage.py sqlmigrate app_name 0002
- C python manage.py inspectdb
- D python manage.py check
Answer
python manage.py sqlmigrate app_name 0002
Reviewing the generated SQL before applying a migration to a large table is essential, since some operations lock the table.





