mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.
Thanks john_scott for the report and Markus Holtermann for review.
This commit is contained in:
@@ -547,6 +547,10 @@ class SchemaTests(TransactionTestCase):
|
||||
strict=True,
|
||||
)
|
||||
|
||||
# This will fail if DROP DEFAULT is inadvertently executed on this
|
||||
# field which drops the id sequence, at least on PostgreSQL.
|
||||
Author.objects.create(name='Foo')
|
||||
|
||||
def test_rename(self):
|
||||
"""
|
||||
Tests simple altering of fields
|
||||
|
||||
Reference in New Issue
Block a user