summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-05-16 20:41:37 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-05-16 20:41:37 +0000
commitaa6b13c96bb76f1603adf9fcf512ac842d478f32 (patch)
tree4ee1ac2a66220f39622bcf0cef24fba3410c1309
parent47d18514b07fa59ea8b092eb319f6fd60a502ec7 (diff)
Fixed #1830 -- MySQL inspectdb now detects tinyint field properly
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/db/backends/mysql/introspection.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/db/backends/mysql/introspection.py b/django/db/backends/mysql/introspection.py
index a2eeb6de7b..e1fbfff828 100644
--- a/django/db/backends/mysql/introspection.py
+++ b/django/db/backends/mysql/introspection.py
@@ -87,6 +87,7 @@ DATA_TYPES_REVERSE = {
FIELD_TYPE.SHORT: 'IntegerField',
FIELD_TYPE.STRING: 'TextField',
FIELD_TYPE.TIMESTAMP: 'DateTimeField',
+ FIELD_TYPE.TINY: 'IntegerField',
FIELD_TYPE.TINY_BLOB: 'TextField',
FIELD_TYPE.MEDIUM_BLOB: 'TextField',
FIELD_TYPE.LONG_BLOB: 'TextField',