¡@

Home 

OpenStack Study: 338d7508968c_vpnaas_peer_address_.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.alter_column('ipsec_site_connections', 'peer_address',

                    type_=sa.String(255), existing_type=sa.String(64))

**** CubicPower OpenStack Study ****

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

    if not migration.should_run(active_plugins, migration_for_plugins):

        return

    op.alter_column('ipsec_site_connections', 'peer_address',

                    type_=sa.String(64), existing_type=sa.String(255))