Show More
@@ -0,0 +1,27 b'' | |||
|
1 | import logging | |
|
2 | import datetime | |
|
3 | ||
|
4 | from sqlalchemy import * | |
|
5 | from sqlalchemy.exc import DatabaseError | |
|
6 | from sqlalchemy.orm import relation, backref, class_mapper | |
|
7 | from sqlalchemy.orm.session import Session | |
|
8 | ||
|
9 | from rhodecode.lib.dbmigrate.migrate import * | |
|
10 | from rhodecode.lib.dbmigrate.migrate.changeset import * | |
|
11 | ||
|
12 | from rhodecode.model.meta import Base | |
|
13 | ||
|
14 | log = logging.getLogger(__name__) | |
|
15 | ||
|
16 | ||
|
17 | def upgrade(migrate_engine): | |
|
18 | """ Upgrade operations go here. | |
|
19 | Don't create your own engine; bind migrate_engine to your metadata | |
|
20 | """ | |
|
21 | ||
|
22 | #TODO when 1.4 is ready fill it ! | |
|
23 | ||
|
24 | ||
|
25 | def downgrade(migrate_engine): | |
|
26 | meta = MetaData() | |
|
27 | meta.bind = migrate_engine |
General Comments 0
You need to be logged in to leave comments.
Login now