Include deferred SQL in sqlmigrate output
This commit is contained in:
parent
5e63977c0e
commit
67b51b9895
|
@ -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):
|
||||||
|
|
Loading…
Reference in New Issue