Skip to content

Commit

Permalink
Fixed #1830 -- MySQL inspectdb now detects tinyint field properly
Browse files Browse the repository at this point in the history
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2922 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
adrianholovaty committed May 16, 2006
1 parent 47d1851 commit aa6b13c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions django/db/backends/mysql/introspection.py
Expand Up @@ -87,6 +87,7 @@ def get_indexes(cursor, table_name):
FIELD_TYPE.SHORT: 'IntegerField', FIELD_TYPE.SHORT: 'IntegerField',
FIELD_TYPE.STRING: 'TextField', FIELD_TYPE.STRING: 'TextField',
FIELD_TYPE.TIMESTAMP: 'DateTimeField', FIELD_TYPE.TIMESTAMP: 'DateTimeField',
FIELD_TYPE.TINY: 'IntegerField',
FIELD_TYPE.TINY_BLOB: 'TextField', FIELD_TYPE.TINY_BLOB: 'TextField',
FIELD_TYPE.MEDIUM_BLOB: 'TextField', FIELD_TYPE.MEDIUM_BLOB: 'TextField',
FIELD_TYPE.LONG_BLOB: 'TextField', FIELD_TYPE.LONG_BLOB: 'TextField',
Expand Down

0 comments on commit aa6b13c

Please sign in to comment.