summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 e3e3a5a299..cfea2f640e 100644
--- a/django/core/db/backends/mysql.py
+++ b/django/core/db/backends/mysql.py
@@ -98,7 +98,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) auto_increment',
+ 'AutoField': 'mediumint(9) unsigned auto_increment',
'BooleanField': 'bool',
'CharField': 'varchar(%(maxlength)s)',
'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',