| ▲ | dxdm 21 hours ago | |
You can ask Django to show you what exact SQL will run for a migration using `manage.py sqlmigrate`. You can run raw SQL in a Django migration. You can even substitute your SQL for otherwise autogenerated operations using `SeparateDatabaseAndState`. You have a ton of control while not having to deal with boilerplate. Things usually can just happen automatically, and it's easy to find out and intervene when they can't. https://docs.djangoproject.com/en/6.0/ref/django-admin/#djan... https://docs.djangoproject.com/en/6.0/ref/migration-operatio... | ||