mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fix altering of SERIAL columns and InnoDB being picky about FK changes
This commit is contained in:
@@ -636,6 +636,7 @@ class SchemaTests(TransactionTestCase):
|
||||
# Alter to change the PK
|
||||
new_field = SlugField(primary_key=True)
|
||||
new_field.set_attributes_from_name("slug")
|
||||
new_field.model = Tag
|
||||
with connection.schema_editor() as editor:
|
||||
editor.remove_field(Tag, Tag._meta.get_field_by_name("id")[0])
|
||||
editor.alter_field(
|
||||
|
||||
Reference in New Issue
Block a user