          with connection.schema_editor() as editor:
              editor.alter_field(Book, old_field, new_field, strict=True)
          # Ensure the field is right afterwards
          columns = self.column_classes(BookWithO2O)
          self.assertEqual(columns['author_id'][0], "IntegerField")
          # Ensure the field is unique now
          BookWithO2O.objects.create(author=author, title="Django 1", pub_date=datetime.datetime.now())
          with self.assertRaises(IntegrityError):
              BookWithO2O.objects.create(author=author, title="Django 2", pub_date=datetime.datetime.now())
          self.assertForeignKeyExists(BookWithO2O, 'author_id', 'schema_author')
 
</s> remove         self.assertEqual(columns['author_id'][0], "IntegerField")
 </s> add         self.assertEqual(columns['author_id'][0], connection.features.introspected_field_types['IntegerField']) </s> remove         self.assertEqual(columns['display_name'][0], "CharField")
 </s> add         self.assertEqual(columns['display_name'][0], connection.features.introspected_field_types['CharField']) </s> remove         self.assertEqual(columns['tagm2mtest_id'][0], "IntegerField")
 </s> add         self.assertEqual(columns['tagm2mtest_id'][0], connection.features.introspected_field_types['IntegerField']) </s> remove         self.assertEqual(columns['name'][0], "CharField")
 </s> add         self.assertEqual(columns['name'][0], connection.features.introspected_field_types['CharField']) </s> remove         self.assertEqual(columns['name'][0], "CharField")
 </s> add         self.assertEqual(columns['name'][0], connection.features.introspected_field_types['CharField'])
        self.assertEqual(columns['author_id'][0], connection.features.introspected_field_types['IntegerField'])
          with connection.schema_editor() as editor:
              editor.alter_field(Book, old_field, new_field, strict=True)
          # Ensure the field is right afterwards
          columns = self.column_classes(BookWithO2O)
        self.assertEqual(columns['author_id'][0], connection.features.introspected_field_types['IntegerField'])
          # Ensure the field is unique now
          BookWithO2O.objects.create(author=author, title="Django 1", pub_date=datetime.datetime.now())
          with self.assertRaises(IntegrityError):
              BookWithO2O.objects.create(author=author, title="Django 2", pub_date=datetime.datetime.now())
          self.assertForeignKeyExists(BookWithO2O, 'author_id', 'schema_author')
keep keep keep keep replace keep keep keep keep keep
 Refs #31630 -- Added CharField and IntegerField to DatabaseFeatures.introspected_field_types.

CockroachDB introspects CharField as TextField and IntegerField as
BigIntegerField. 
tests/schema/tests.py