¡@

Home 

OpenStack Study: 2032abe8edac_lbaas_add_status_des.py

OpenStack Index

**** CubicPower OpenStack Study ****

def upgrade(active_plugins=None, options=None):

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    for entity in ENTITIES:

        op.add_column(entity, sa.Column('status_description', sa.String(255)))

**** CubicPower OpenStack Study ****

def downgrade(active_plugins=None, options=None):

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    for entity in ENTITIES:

        op.drop_column(entity, 'status_description')