]>
Commit | Line | Data |
---|---|---|
047d4d29 MR |
1 | from sqlalchemy import * |
2 | from migrate import * | |
3 | ||
4 | ||
5 | from migrate.changeset import schema | |
6 | pre_meta = MetaData() | |
7 | post_meta = MetaData() | |
8 | ||
9 | def upgrade(migrate_engine): | |
10 | # Upgrade operations go here. Don't create your own engine; bind | |
11 | # migrate_engine to your metadata | |
12 | pre_meta.bind = migrate_engine | |
13 | post_meta.bind = migrate_engine | |
14 | ||
15 | ||
16 | def downgrade(migrate_engine): | |
17 | # Operations to reverse the above upgrade go here. | |
18 | pre_meta.bind = migrate_engine | |
19 | post_meta.bind = migrate_engine |