¡@

Home 

OpenStack Study: 13de305df56e_add_nec_pf_name.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('packetfilters',

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

**** CubicPower OpenStack Study ****

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

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.drop_column('packetfilters', 'name')