Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #1500 -- Changed MySQL AutoField to be integer, not mediumint. …

…Thanks, ejf-django

git-svn-id: http://code.djangoproject.com/svn/django/trunk@2582 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit b353103cb6a09640c308c5c621ead6e87c231ba7 1 parent 1d64709
@adrianholovaty adrianholovaty authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/core/db/backends/mysql.py
View
2  django/core/db/backends/mysql.py
@@ -189,7 +189,7 @@ def get_indexes(cursor, table_name):
# be interpolated against the values of Field.__dict__ before being output.
# If a column type is set to None, it won't be included in the output.
DATA_TYPES = {
- 'AutoField': 'mediumint(9) unsigned auto_increment',
+ 'AutoField': 'integer AUTO_INCREMENT',
'BooleanField': 'bool',
'CharField': 'varchar(%(maxlength)s)',
'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',
Please sign in to comment.
Something went wrong with that request. Please try again.