Commits

Bryce Lohr  committed 3994a6c

Fixed engine name arg names as used in script template.

  • Participants
  • Parent commits 4500a20

Comments (0)

Files changed (1)

File alembic/templates/multidb/script.py.mako

 import sqlalchemy as sa
 ${imports if imports else ""}
 
-def upgrade(engine):
-    eval("upgrade_%s" % engine.name)()
+def upgrade(engine_name):
+    eval("upgrade_%s" % engine_name)()
 
 
-def downgrade(engine):
-    eval("downgrade_%s" % engine.name)()
+def downgrade(engine_name):
+    eval("downgrade_%s" % engine_name)()
 
 
 % for engine in ["engine1", "engine2"]: