1
0
mirror of https://github.com/django/django.git synced 2025-01-08 17:37:20 +00:00

Include deferred SQL in sqlmigrate output

This commit is contained in:
Andrew Godwin 2013-11-27 16:29:37 +00:00
parent 5e63977c0e
commit 67b51b9895

View File

@ -74,7 +74,7 @@ class MigrationExecutor(object):
migration.apply(project_state, schema_editor, collect_sql=True)
else:
migration.unapply(project_state, schema_editor, collect_sql=True)
statements.extend(schema_editor.collected_sql)
statements.extend(schema_editor.collected_sql)
return statements
def apply_migration(self, migration, fake=False):