Code

Ticket #10037: m2m.diff

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

patch

Line 
1--- creation.py Thu Jan 15 16:13:04 2009
2+++ mycreation.py       Thu Jan 15 16:11:28 2009
3@@ -159,11 +159,6 @@ class BaseDatabaseCreation(object):
4                 tablespace_sql = ''
5             table_output = [style.SQL_KEYWORD('CREATE TABLE') + ' ' + \
6                 style.SQL_TABLE(qn(f.m2m_db_table())) + ' (']
7-            table_output.append('    %s %s %s%s,' %
8-                (style.SQL_FIELD(qn('id')),
9-                style.SQL_COLTYPE(models.AutoField(primary_key=True).db_type()),
10-                style.SQL_KEYWORD('NOT NULL PRIMARY KEY'),
11-                tablespace_sql))
12 
13             deferred = []
14             inline_output, deferred = self.sql_for_inline_many_to_many_references(model, f, style)