Ticket #10037: m2m.diff

File m2m.diff, 717 bytes (added by powerfox, 6 years ago)

patch

  • .py

    old new class BaseDatabaseCreation(object): 
    159159                tablespace_sql = ''
    160160            table_output = [style.SQL_KEYWORD('CREATE TABLE') + ' ' + \
    161161                style.SQL_TABLE(qn(f.m2m_db_table())) + ' (']
    162             table_output.append('    %s %s %s%s,' %
    163                 (style.SQL_FIELD(qn('id')),
    164                 style.SQL_COLTYPE(models.AutoField(primary_key=True).db_type()),
    165                 style.SQL_KEYWORD('NOT NULL PRIMARY KEY'),
    166                 tablespace_sql))
    167162
    168163            deferred = []
    169164            inline_output, deferred = self.sql_for_inline_many_to_many_references(model, f, style)
Back to Top