Ticket #1500: mysql_autofield_patch_2.diff

File mysql_autofield_patch_2.diff, 1.3 KB (added by Andy Dustman <farcepest@…>, 18 years ago)

Updated patch (files moved, plus additional bugfix)

  • django/db/backends/mysql/creation.py

     
    33# be interpolated against the values of Field.__dict__ before being output.
    44# If a column type is set to None, it won't be included in the output.
    55DATA_TYPES = {
    6     'AutoField':         'mediumint(9) unsigned auto_increment',
     6    'AutoField':         'integer auto_increment',
    77    'BooleanField':      'bool',
    88    'CharField':         'varchar(%(maxlength)s)',
    99    'CommaSeparatedIntegerField': 'varchar(%(maxlength)s)',
  • django/core/management.py

     
    114114    not_installed_models = set(pending_references.keys())
    115115    if not_installed_models:
    116116        final_output.append('-- The following references should be added but depend on non-existant tables:')
    117         for klass in not_found_models:
     117        for klass in not_installed_models:
    118118            final_output.extend(['-- ' + sql for sql in
    119119                _get_sql_for_pending_references(klass, pending_references)])
    120120
Back to Top