Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit aa6b13c96bb76f1603adf9fcf512ac842d478f32 1 parent 47d1851
Adrian Holovaty authored May 16, 2006
1  django/db/backends/mysql/introspection.py
@@ -87,6 +87,7 @@ def get_indexes(cursor, table_name):
87 87
     FIELD_TYPE.SHORT: 'IntegerField',
88 88
     FIELD_TYPE.STRING: 'TextField',
89 89
     FIELD_TYPE.TIMESTAMP: 'DateTimeField',
  90
+    FIELD_TYPE.TINY: 'IntegerField',
90 91
     FIELD_TYPE.TINY_BLOB: 'TextField',
91 92
     FIELD_TYPE.MEDIUM_BLOB: 'TextField',
92 93
     FIELD_TYPE.LONG_BLOB: 'TextField',

0 notes on commit aa6b13c

Please sign in to comment.
Something went wrong with that request. Please try again.