1
0
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:
Tim Graham
2014-12-29 16:23:18 -05:00
parent 002a8ffe47
commit ab4f709da4
3 changed files with 26 additions and 23 deletions

View File

@@ -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