              changes, 'otherapp', 0, 3, name='book',
              index_together={('author', 'title')},
          )
          self.assertOperationAttributes(
              changes, 'otherapp', 0, 4, model_name='book', name='newfield',
          )
  
      def test_alter_field_and_foo_together(self):
          """Fields are altered after deleting some index/unique_together."""
          initial_author = ModelState('testapp', 'Author', [
 
</s> remove             changes, 'otherapp', 0, 3, name='book',
 </s> add             changes, 'otherapp', 0, 1, name='book', </s> remove             changes, 'otherapp', 0, 0, name='book', unique_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 1, name='book', index_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 2, name='book',
 </s> add             changes, 'otherapp', 0, 0, name='book', </s> remove             changes, 'otherapp', 0, 1, name='book', unique_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 2, name='book', index_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 3, name='book',
 </s> add             changes, 'otherapp', 0, 1, name='book', </s> remove             changes, 'otherapp', 0, 4, name='book',
 </s> add             changes, 'otherapp', 0, 2, name='book', </s> remove             changes, 'otherapp', 0, 0, name='book', unique_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 1, name='book', index_together=set(),
        )
        self.assertOperationAttributes(
            changes, 'otherapp', 0, 2, name='book',
 </s> add             changes, 'otherapp', 0, 0, name='book',
            changes, 'otherapp', 0, 2, model_name='book', name='newfield',
              changes, 'otherapp', 0, 3, name='book',
              index_together={('author', 'title')},
          )
          self.assertOperationAttributes(
            changes, 'otherapp', 0, 2, model_name='book', name='newfield',
          )
  
      def test_alter_field_and_foo_together(self):
          """Fields are altered after deleting some index/unique_together."""
          initial_author = ModelState('testapp', 'Author', [
keep keep keep keep replace keep keep keep keep keep
 Fixed #33402 -- Optimized multiple AlterFooTogether operations. 
tests/migrations/test_autodetector.py