¡@

Home 

OpenStack Study: 013_add_protected.py

OpenStack Index

**** CubicPower OpenStack Study ****

def upgrade(migrate_engine):

    meta.bind = migrate_engine

    images = Table('images', meta, autoload=True)

    images.create_column(protected)

**** CubicPower OpenStack Study ****

def downgrade(migrate_engine):

    meta.bind = migrate_engine

    images = Table('images', meta, autoload=True)

    images.drop_column(protected)