]> git.datanom.net - wpp.git/blob - db_repository/versions/004_migration.py
Base user framework finished
[wpp.git] / db_repository / versions / 004_migration.py
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
This page took 0.062606 seconds and 6 git commands to generate.