From aa6b13c96bb76f1603adf9fcf512ac842d478f32 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 16 May 2006 20:41:37 +0000 Subject: [PATCH] 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 --- django/db/backends/mysql/introspection.py | 1 + 1 file changed, 1 insertion(+) 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',