Example #1
0
def upgrade():
    metadata = sa.MetaData(bind=db.get_engine(app), reflect=True)
    if 'powerconnect55xx' in metadata.tables:
        op.rename_table('powerconnect55xx', 'power_connect55xx')
def upgrade():
    metadata = sa.MetaData(bind=db.get_engine(app), reflect=True)
    if 'mockswitch' in metadata.tables:
        op.rename_table('mockswitch', 'mock_switch')
def upgrade():
    metadata = sa.MetaData(bind=db.get_engine(app), reflect=True)
    if 'powerconnect55xx' in metadata.tables:
        op.rename_table('powerconnect55xx', 'power_connect55xx')