diff options
author | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-03-02 11:18:25 -0800 |
---|---|---|
committer | Christopher Allan Webber <cwebber@dustycloud.org> | 2016-03-02 11:20:47 -0800 |
commit | af6b89eafe4bce418737c66ad8ebef5aa297f378 (patch) | |
tree | 1f9b8238ef02f49539eb96651de1948aae6f9b43 /mediagoblin/db/migration_tools.py | |
parent | 0c9c5cab62f3983a80c3101c9484de005f0fb1aa (diff) | |
download | mediagoblin-af6b89eafe4bce418737c66ad8ebef5aa297f378.tar.lz mediagoblin-af6b89eafe4bce418737c66ad8ebef5aa297f378.tar.xz mediagoblin-af6b89eafe4bce418737c66ad8ebef5aa297f378.zip |
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.
Diffstat (limited to 'mediagoblin/db/migration_tools.py')
-rw-r--r-- | mediagoblin/db/migration_tools.py | 3 |
1 files changed, 0 insertions, 3 deletions
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)) |