summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-03-28 17:46:53 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-03-28 17:46:53 +0000
commitb353103cb6a09640c308c5c621ead6e87c231ba7 (patch)
tree7e6707ecfb1599010a753c10f92af8cf20b212f3
parent1d64709080f20230bc9805599d4c14d8330f9ac0 (diff)
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
-rw-r--r--django/core/db/backends/mysql.py2
1 files changed, 1 insertions, 1 deletions
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)',