Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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 adrianholovaty authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  django/db/backends/mysql/introspection.py
1  django/db/backends/mysql/introspection.py
View
@@ -87,6 +87,7 @@ def get_indexes(cursor, table_name):
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',
Please sign in to comment.
Something went wrong with that request. Please try again.