From b353103cb6a09640c308c5c621ead6e87c231ba7 Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Tue, 28 Mar 2006 17:46:53 +0000 Subject: [PATCH] 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 --- django/core/db/backends/mysql.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/core/db/backends/mysql.py b/django/core/db/backends/mysql.py index 51b8e85d30..1b67fc8615 100644 --- a/django/core/db/backends/mysql.py +++ b/django/core/db/backends/mysql.py @@ -189,7 +189,7 @@ OPERATOR_MAPPING = { # 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)',