diff -r 0b171fe8b1bc django/db/backends/creation.py
a
|
b
|
|
157 | 157 | from django.db.backends.util import truncate_name |
158 | 158 | |
159 | 159 | output = [] |
160 | | if f.creates_table: |
| 160 | if f.auto_created: |
161 | 161 | opts = model._meta |
162 | 162 | qn = self.connection.ops.quote_name |
163 | 163 | tablespace = f.db_tablespace or opts.db_tablespace |
… |
… |
|
308 | 308 | "Returns the DROP TABLE statements for a single m2m field" |
309 | 309 | qn = self.connection.ops.quote_name |
310 | 310 | output = [] |
311 | | if f.creates_table: |
| 311 | if f.auto_created: |
312 | 312 | output.append("%s %s;" % (style.SQL_KEYWORD('DROP TABLE'), |
313 | 313 | style.SQL_TABLE(qn(f.m2m_db_table())))) |
314 | 314 | ds = self.connection.ops.drop_sequence_sql("%s_%s" % (model._meta.db_table, f.column)) |