Changes between Version 4 and Version 5 of Ticket #29721, comment 12
- Timestamp:
- Oct 7, 2026, 2:43:53 AM (5 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #29721, comment 12
v4 v5 31 31 }}} 32 32 33 The django_migrations insert happens both after the deferred sql and inside the transaction, so it is atomic.33 The django_migrations insert happens after the deferred sql and before the COMMIT, so it is atomic. 34 34 35 35 {{{#!diff … … 95 95 }}} 96 96 97 (This is just a minimal proof of concept of what a fix would look like, it'd have to be applied to unapply_migrations as well, handle exceptions in record_migrations, etc). 98 97 99 Minimal model to get deferred_sql: 98 100