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
1 changed files with 1 additions and 1 deletions

View File

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