¡@

Home 

OpenStack Study: 016_add_status_image_member.py

OpenStack Index

**** CubicPower OpenStack Study ****

def upgrade(migrate_engine):

    meta.bind = migrate_engine

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

    image_members.create_column(status)

**** CubicPower OpenStack Study ****

def downgrade(migrate_engine):

    meta.bind = migrate_engine

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

    image_members.drop_column(status)