From 67b51b98959025c7a5e928f640488e230efde82e Mon Sep 17 00:00:00 2001 From: Andrew Godwin Date: Wed, 27 Nov 2013 16:29:37 +0000 Subject: [PATCH] Include deferred SQL in sqlmigrate output --- django/db/migrations/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py index 6352891b47e..26d269fd9fa 100644 --- a/django/db/migrations/executor.py +++ b/django/db/migrations/executor.py @@ -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):