Changes between Version 4 and Version 5 of Ticket #29721, comment 12


Ignore:
Timestamp:
Oct 7, 2026, 2:43:53 AM (5 hours ago)
Author:
Gavin Wahl(vendor)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #29721, comment 12

    v4 v5  
    3131}}}
    3232
    33 The django_migrations insert happens both after the deferred sql and inside the transaction, so it is atomic.
     33The django_migrations insert happens after the deferred sql and before the COMMIT, so it is atomic.
    3434
    3535{{{#!diff
    … …  
    9595}}}
    9696
     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
    9799Minimal model to get deferred_sql:
    98100
Back to Top