2008-01-12 23:24:08 +01:00
|
|
|
from sqlalchemy import *
|
|
|
|
from migrate import *
|
|
|
|
|
|
|
|
meta = BoundMetaData(migrate_engine)
|
|
|
|
account = Table('account', meta,
|
|
|
|
Column('id', Integer, primary_key=True),
|
|
|
|
Column('login', String(40)),
|
|
|
|
Column('passwd', String(40)))
|
|
|
|
|
2008-06-06 21:20:18 +02:00
|
|
|
|
2008-01-12 23:24:08 +01:00
|
|
|
def upgrade():
|
|
|
|
account.create()
|
|
|
|
|
2008-06-06 21:20:18 +02:00
|
|
|
|
2008-01-12 23:24:08 +01:00
|
|
|
def downgrade():
|
|
|
|
account.drop()
|