mirror of
https://github.com/django/django.git
synced 2025-10-23 21:59:11 +00:00
Include deferred SQL in sqlmigrate output
This commit is contained in:
@@ -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):
|
||||||
|
|||||||
Reference in New Issue
Block a user