Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove debug prints
  • Loading branch information
andrewgodwin committed May 30, 2013
1 parent 8d81c6b commit 7609e0b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions django/db/migrations/executor.py
Expand Up @@ -49,20 +49,16 @@ def apply_migration(self, migration):
"""
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

0 comments on commit 7609e0b

Please sign in to comment.