summaryrefslogtreecommitdiff
path: root/templates/multidb/script.py.mako
blob: d485a58e499b14950507a4a72292119391bbca3d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
"""${message}"""

# downgrade revision identifier, used by Alembic.
down_revision = ${repr(down_revision)}

from alembic.op import *

def upgrade(engine):
    eval("upgrade_%s" % engine.name)()

% if down_revision:
def downgrade(engine):
    eval("upgrade_%s" % engine.name)()
% else:
# this is the origin node, no downgrade !
% endif


% for engine in ["engine1", "engine2"]:
    def upgrade_${engine}():
        pass

    def downgrade_${engine}():
        pass
% endfor