mirror of https://github.com/django/django.git
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
This commit is contained in:
parent
1d64709080
commit
b353103cb6
|
@ -189,7 +189,7 @@ OPERATOR_MAPPING = {
|
||||||
# be interpolated against the values of Field.__dict__ before being output.
|
# 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.
|
# If a column type is set to None, it won't be included in the output.
|
||||||
DATA_TYPES = {
|
DATA_TYPES = {
|
||||||
'AutoField': 'mediumint(9) unsigned auto_increment',
|
'AutoField': 'integer AUTO_INCREMENT',
|
||||||
'BooleanField': 'bool',
|
'BooleanField': 'bool',
|
||||||
'CharField': 'varchar(%(maxlength)s)',
|
'CharField': 'varchar(%(maxlength)s)',
|
||||||
'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',
|
'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',
|
||||||
|
|
Loading…
Reference in New Issue