mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed #32132 -- Fixed column types in m2m intermediary tables for Positive(Big/Small)IntegerFields.
This commit is contained in:
committed by
Mariusz Felisiak
parent
4ebd633350
commit
cfc7cd6513
@@ -176,6 +176,11 @@ class BigIntegerFieldTests(IntegerFieldTests):
|
||||
class PositiveSmallIntegerFieldTests(IntegerFieldTests):
|
||||
model = PositiveSmallIntegerModel
|
||||
documented_range = (0, 32767)
|
||||
rel_db_type_class = (
|
||||
models.PositiveSmallIntegerField
|
||||
if connection.features.related_fields_match_type
|
||||
else models.SmallIntegerField
|
||||
)
|
||||
|
||||
|
||||
class PositiveIntegerFieldTests(IntegerFieldTests):
|
||||
@@ -198,6 +203,11 @@ class PositiveIntegerFieldTests(IntegerFieldTests):
|
||||
class PositiveBigIntegerFieldTests(IntegerFieldTests):
|
||||
model = PositiveBigIntegerModel
|
||||
documented_range = (0, 9223372036854775807)
|
||||
rel_db_type_class = (
|
||||
models.PositiveBigIntegerField
|
||||
if connection.features.related_fields_match_type
|
||||
else models.BigIntegerField
|
||||
)
|
||||
|
||||
|
||||
class ValidationTests(SimpleTestCase):
|
||||
|
||||
Reference in New Issue
Block a user