diff options
| author | Tim Graham <timograham@gmail.com> | 2014-12-29 16:23:18 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-12-30 07:54:05 -0500 |
| commit | ab4f709da4516672b0bd811f2b4d0c4ba9f5b636 (patch) | |
| tree | 9983cba52a6a3a9cde103d19ed31e5c026cb0047 /tests | |
| parent | 002a8ffe478b7520a64c9176f9f640633f643b9c (diff) | |
Fixed #23581 -- Prevented extraneous DROP DEFAULT statements.
Thanks john_scott for the report and Markus Holtermann for review.
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/schema/tests.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/schema/tests.py b/tests/schema/tests.py index 53e67b5647..e9de2131a9 100644 --- a/tests/schema/tests.py +++ b/tests/schema/tests.py @@ -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 |
