mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Fixed #23357 -- Added small int introspection support to MySQL backend.
In the MySQL backend, updated the can_introspect_small_integer feature flag to True. In data_types_reverse, map FIELD_TYPE.SHORT to a SmallIntegerField. Added test to verify introspecting SmallIntegerFields and fixed existing tests influenced by this change.
This commit is contained in:
committed by
Simon Charette
parent
a81af7f49d
commit
f0d3dd4f04
@@ -11,6 +11,7 @@ class Reporter(models.Model):
|
||||
email = models.EmailField()
|
||||
facebook_user_id = models.BigIntegerField(null=True)
|
||||
raw_data = models.BinaryField(null=True)
|
||||
small_int = models.SmallIntegerField()
|
||||
|
||||
class Meta:
|
||||
unique_together = ('first_name', 'last_name')
|
||||
|
||||
Reference in New Issue
Block a user