¡@

Home 

OpenStack Study: 232_drop_dump_tables.py

OpenStack Index

**** CubicPower OpenStack Study ****

def upgrade(migrate_engine):

    meta = MetaData(migrate_engine)

    meta.reflect(migrate_engine)

    table_names = ['compute_node_stats', 'compute_nodes', 'instance_actions',

                   'instance_actions_events', 'instance_faults', 'migrations']

    for table_name in table_names:

        table = Table('dump_' + table_name, meta)

        table.drop(checkfirst=True)

**** CubicPower OpenStack Study ****

def downgrade(migrate_engine):

    pass