summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Godwin <andrew@aeracode.org>2013-05-30 18:25:57 +0100
committerAndrew Godwin <andrew@aeracode.org>2013-05-30 18:25:57 +0100
commit7609e0b42e0014a6ad0adf9dafc7018cb268070e (patch)
tree67238a4d0044ac05d46c942f2f8fa3da99772b38
parent8d81c6bc821b614f8c6fec337a7bc6c992816c31 (diff)
Remove debug prints
-rw-r--r--django/db/migrations/executor.py4
1 files changed, 0 insertions, 4 deletions
diff --git a/django/db/migrations/executor.py b/django/db/migrations/executor.py
index e9e98d41fd..0f16001500 100644
--- a/django/db/migrations/executor.py
+++ b/django/db/migrations/executor.py
@@ -49,20 +49,16 @@ class MigrationExecutor(object):
"""
Runs a migration forwards.
"""
- print "Applying %s" % migration
with self.connection.schema_editor() as schema_editor:
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
migration.apply(project_state, schema_editor)
self.recorder.record_applied(migration.app_label, migration.name)
- print "Finished %s" % migration
def unapply_migration(self, migration):
"""
Runs a migration backwards.
"""
- print "Unapplying %s" % migration
with self.connection.schema_editor() as schema_editor:
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
migration.unapply(project_state, schema_editor)
self.recorder.record_unapplied(migration.app_label, migration.name)
- print "Finished %s" % migration