Ticket #10037: m2m.diff
File m2m.diff, 717 bytes (added by , 16 years ago) |
---|
-
.py
old new class BaseDatabaseCreation(object): 159 159 tablespace_sql = '' 160 160 table_output = [style.SQL_KEYWORD('CREATE TABLE') + ' ' + \ 161 161 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))167 162 168 163 deferred = [] 169 164 inline_output, deferred = self.sql_for_inline_many_to_many_references(model, f, style)