summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorTim Graham <timograham@gmail.com>2014-12-29 16:23:18 -0500
committerTim Graham <timograham@gmail.com>2014-12-30 08:31:18 -0500
commita9da5dd5b6f722a230a69211ad8e00a20cafcd38 (patch)
treec9f8e0a56452b000cc54ec618ff8035e8528e227 /tests
parent79645529e7ce03a7eef1e51e7058a9880f83efb5 (diff)
[1.7.x] Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.
Thanks john_scott for the report and Markus Holtermann for review. Backport of ab4f709da4516672b0bd811f2b4d0c4ba9f5b636 from master
Diffstat (limited to 'tests')
-rw-r--r--tests/schema/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py
index 077c41611f..d7db1f8949 100644
--- a/tests/schema/tests.py
+++ b/tests/schema/tests.py
@@ -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