Switch to side-by-side view
--- a/pyforge/flyway/migrate.py +++ b/pyforge/flyway/migrate.py @@ -32,8 +32,9 @@ _current_migrations_module = None - def __init__(self, session): + def __init__(self, session, ormsession): self.session = session + self.ormsession = ormsession def up_requires(self): return [ (self.module, self.version-1) ]