• Markus Holtermann's avatar
    Fixed #24828 -- Allowed migration optimization across AlterFooTogether · e470f311
    Markus Holtermann yazdı
    The idea behind this change is, that AlterUniqueTogether,
    AlterIndexTogether and AlterOrderWithRespectTo can always be moved after
    an Add/Alter/Rename/RemoveField operation if they don't refer to the
    respective field and are not empty sets / None.
    
    Combined with the optimizations of duplicate AlterUniqueTogether,
    AlterIndexTogether, and AlterOrderWithRespectTo operations from
    128caa1e, these operations are optimized
    in a later round of the optimizer.
    
    Thanks Tim Graham for the review.
    e470f311
test_optimizer.py 22 KB