mirror of
https://github.com/django/django.git
synced 2025-10-31 09:41:08 +00:00
[1.7.x] Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.
Thanks john_scott for the report and Markus Holtermann for review.
Backport of ab4f709da4 from master
This commit is contained in:
@@ -554,6 +554,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