Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #4048 -- When introspecting a MySQL database, map CHAR(n) field…

…s to

Django's CharField type, not TextField. Thanks, Bill Fenner.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@5042 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit eb107e1ae95e180b07ac19915d2e50527d203d87 1 parent fe24ddb
Malcolm Tredinnick authored April 20, 2007
1  AUTHORS
@@ -88,6 +88,7 @@ answer newbie questions, and generally made Django that much better:
88 88
     Dirk Eschler <dirk.eschler@gmx.net>
89 89
     Marc Fargas <telenieko@telenieko.com>
90 90
     favo@exoweb.net
  91
+    Bill Fenner <fenner@gmail.com>
91 92
     Matthew Flanagan <http://wadofstuff.blogspot.com>
92 93
     Eric Floehr <eric@intellovations.com>
93 94
     Jorge Gajon <gajon@gajon.org>
2  django/db/backends/mysql/introspection.py
@@ -85,7 +85,7 @@ def get_indexes(cursor, table_name):
85 85
     FIELD_TYPE.LONG: 'IntegerField',
86 86
     FIELD_TYPE.LONGLONG: 'IntegerField',
87 87
     FIELD_TYPE.SHORT: 'IntegerField',
88  
-    FIELD_TYPE.STRING: 'TextField',
  88
+    FIELD_TYPE.STRING: 'CharField',
89 89
     FIELD_TYPE.TIMESTAMP: 'DateTimeField',
90 90
     FIELD_TYPE.TINY: 'IntegerField',
91 91
     FIELD_TYPE.TINY_BLOB: 'TextField',

0 notes on commit eb107e1

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