Ticket #56: mysql_creation.diff

File mysql_creation.diff, 680 bytes (added by buzzar, 5 years ago)

Adding UNSIGNED the AutoField definition for MySQL

  • db/backends/mysql/creation.py

     
    66    # be interpolated against the values of Field.__dict__ before being output.
    77    # If a column type is set to None, it won't be included in the output.
    88    data_types = {
    9         'AutoField':         'integer AUTO_INCREMENT',
     9        'AutoField':         'integer UNSIGNED AUTO_INCREMENT',
    1010        'BooleanField':      'bool',
    1111        'CharField':         'varchar(%(max_length)s)',
    1212        'CommaSeparatedIntegerField': 'varchar(%(max_length)s)',
Back to Top