From af6b89eafe4bce418737c66ad8ebef5aa297f378 Mon Sep 17 00:00:00 2001 From: Christopher Allan Webber Date: Wed, 2 Mar 2016 11:18:25 -0800 Subject: Remove old hack to support pre-0.7.5 Alembic versions Thanks to Jessica Tallon for pointing out this TODO and its associated hack could be removed. --- mediagoblin/db/migration_tools.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'mediagoblin/db') diff --git a/mediagoblin/db/migration_tools.py b/mediagoblin/db/migration_tools.py index b3fb8f41..a28b3db0 100644 --- a/mediagoblin/db/migration_tools.py +++ b/mediagoblin/db/migration_tools.py @@ -46,9 +46,6 @@ class AlembicMigrationManager(object): alembic_cfg_path = os.path.join(root_dir, 'alembic.ini') self.alembic_cfg = Config(alembic_cfg_path) - # TODO: After 0.7.5 alembic has Config.attributes already made, once - # we're able to update, please remove this hack! - self.alembic_cfg.attributes = {} self.alembic_cfg.attributes["session"] = self.session self.alembic_cfg.set_main_option("qlalchemy.url", str(self.engine.url)) -- cgit v1.2.3