¡@

Home 

OpenStack Study: 35c7c198ddea_lbaas_healthmon_del_status.py

OpenStack Index

**** CubicPower OpenStack Study ****

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

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.drop_column('healthmonitors', 'status')

    op.drop_column('healthmonitors', 'status_description')

**** CubicPower OpenStack Study ****

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

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.add_column('healthmonitors', sa.Column('status',

                                              sa.String(16),

                                              nullable=False))

    op.add_column('healthmonitors', sa.Column('status_description',

                                              sa.String(255)))