15 lines
340 B
Python
15 lines
340 B
Python
|
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)))
|
||
|
|
||
|
def upgrade():
|
||
|
account.create()
|
||
|
|
||
|
def downgrade():
|
||
|
account.drop()
|