summaryrefslogtreecommitdiff
path: root/tests/postgres_tests/migrations
diff options
context:
space:
mode:
authorDavid Sanders <shang.xiao.sanders@gmail.com>2024-08-05 08:22:29 +0200
committerSarah Boyce <42296566+sarahboyce@users.noreply.github.com>2024-08-05 17:36:15 +0200
commitaed4ffe1897c51c0dfd8689c0834ca4ca0a8a03e (patch)
tree409778e06c17bbc9f828db340b431c030e5e400b /tests/postgres_tests/migrations
parent78654a29b851751f347d51dbfe5ba8a996c012ba (diff)
[5.1.x] Fixed #35638 -- Updated validate_constraints to consider db_default.
Backport of 509763c79952cde02d9f5b584af4278bdbed77b2 from main.
Diffstat (limited to 'tests/postgres_tests/migrations')
-rw-r--r--tests/postgres_tests/migrations/0002_create_test_models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/postgres_tests/migrations/0002_create_test_models.py b/tests/postgres_tests/migrations/0002_create_test_models.py
index 5538b436ad..188f79607d 100644
--- a/tests/postgres_tests/migrations/0002_create_test_models.py
+++ b/tests/postgres_tests/migrations/0002_create_test_models.py
@@ -434,7 +434,7 @@ class Migration(migrations.Migration):
primary_key=True,
),
),
- ("ints", IntegerRangeField(null=True, blank=True)),
+ ("ints", IntegerRangeField(null=True, blank=True, db_default=(5, 10))),
("bigints", BigIntegerRangeField(null=True, blank=True)),
("decimals", DecimalRangeField(null=True, blank=True)),
("timestamps", DateTimeRangeField(null=True, blank=True)),