docs.djangoproject.com
docs.djangoproject.com
https://docs.djangoproject.com › en › 5.1 › topics › migrations
How to create database migrations
The atomic attribute doesn't have an effect on databases that don't support DDL transactions (e.g. MySQL, Oracle). (MySQL's atomic DDL statement support refers to individual statements rather than multiple statements wrapped in a transaction that can be rolled back.). Controlling the order of migrations¶. Django determines the order in which migrations should be applied not by the ...
Migration Operations
Migration Operations¶. Migration files are composed of one or more Operation s, objects that declaratively record what the migration should do to your database.. Django also uses these Operation objects to work out what your models looked like historically, and to calculate what changes you've made to your models since the last migration so it can automatically write your migrations; that ...