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