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)',