¡@

Home 

OpenStack Study: 157a5d299379_ml2_binding_profile.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.add_column('ml2_port_bindings',

                  sa.Column('profile', sa.String(length=4095),

                            nullable=False, server_default=''))

**** CubicPower OpenStack Study ****

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

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.drop_column('ml2_port_bindings', 'profile')