¡@

Home 

OpenStack Study: b7a8863760e_rm_cisco_vlan_bindin.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_table('cisco_vlan_bindings')

**** CubicPower OpenStack Study ****

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

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.create_table(

        'cisco_vlan_bindings',

        sa.Column('vlan_id', sa.Integer(display_width=11), nullable=False),

        sa.Column('vlan_name', sa.String(length=255), nullable=True),

        sa.Column('network_id', sa.String(length=255), nullable=False),

        sa.PrimaryKeyConstraint('vlan_id')

    )