Remove debug prints
This commit is contained in:
parent
8d81c6bc82
commit
7609e0b42e
|
@ -49,20 +49,16 @@ class MigrationExecutor(object):
|
||||||
"""
|
"""
|
||||||
Runs a migration forwards.
|
Runs a migration forwards.
|
||||||
"""
|
"""
|
||||||
print "Applying %s" % migration
|
|
||||||
with self.connection.schema_editor() as schema_editor:
|
with self.connection.schema_editor() as schema_editor:
|
||||||
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
|
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
|
||||||
migration.apply(project_state, schema_editor)
|
migration.apply(project_state, schema_editor)
|
||||||
self.recorder.record_applied(migration.app_label, migration.name)
|
self.recorder.record_applied(migration.app_label, migration.name)
|
||||||
print "Finished %s" % migration
|
|
||||||
|
|
||||||
def unapply_migration(self, migration):
|
def unapply_migration(self, migration):
|
||||||
"""
|
"""
|
||||||
Runs a migration backwards.
|
Runs a migration backwards.
|
||||||
"""
|
"""
|
||||||
print "Unapplying %s" % migration
|
|
||||||
with self.connection.schema_editor() as schema_editor:
|
with self.connection.schema_editor() as schema_editor:
|
||||||
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
|
project_state = self.loader.graph.project_state((migration.app_label, migration.name), at_end=False)
|
||||||
migration.unapply(project_state, schema_editor)
|
migration.unapply(project_state, schema_editor)
|
||||||
self.recorder.record_unapplied(migration.app_label, migration.name)
|
self.recorder.record_unapplied(migration.app_label, migration.name)
|
||||||
print "Finished %s" % migration
|
|
||||||
|
|
Loading…
Reference in New Issue