From de55b23eba4880fb69ea10763e52e3e58bcfe50b Mon Sep 17 00:00:00 2001 From: Marcio Mazza Date: Thu, 13 Aug 2015 17:21:40 -0300 Subject: [PATCH] Add convenience migrate method --- legacy/migration.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/legacy/migration.py b/legacy/migration.py index 4c7b4a7d6..b3ce5b8fc 100644 --- a/legacy/migration.py +++ b/legacy/migration.py @@ -226,6 +226,11 @@ class DataMigrator(object): self.to_delete.append(new) +def migrate(obj=appconfs): + dm = DataMigrator() + dm.migrate(obj) + + # MIGRATION_ADJUSTMENTS ##################################################### def adjust_participacao(new_participacao, old):