"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tacker/db/migration/alembic_migrations/versions/5246a6bd410f_multisite_vim.py" between
tacker-4.0.0.tar.gz and tacker-5.0.0.tar.gz

About: OpenStack Tacker builds an Open NFV Orchestrator with in-built general purpose VNF Manager to deploy and operate Virtual Network Functions (VNFs) on an NFV Platform.
The "Wallaby" series (latest release).

5246a6bd410f_multisite_vim.py  (tacker-4.0.0):5246a6bd410f_multisite_vim.py  (tacker-5.0.0)
skipping to change at line 41 skipping to change at line 41
import sqlalchemy as sa import sqlalchemy as sa
def upgrade(active_plugins=None, options=None): def upgrade(active_plugins=None, options=None):
op.create_table('vims', op.create_table('vims',
sa.Column('id', sa.String(length=255), nullable=False), sa.Column('id', sa.String(length=255), nullable=False),
sa.Column('type', sa.String(length=255), nullable=False), sa.Column('type', sa.String(length=255), nullable=False),
sa.Column('tenant_id', sa.String(length=255), nullable=True), sa.Column('tenant_id', sa.String(length=255), nullable=True),
sa.Column('name', sa.String(length=255), nullable=True), sa.Column('name', sa.String(length=255), nullable=True),
sa.Column('description', sa.String(length=255), nullable=True), sa.Column('description', sa.String(length=255), nullable=True),
sa.Column('placement_attr', sa.PickleType(), nullable=True), sa.Column('placement_attr', sa.PickleType(), nullable=True),
sa.Column('shared', sa.Boolean(), server_default=sa.text(u'true'), sa.Column('shared', sa.Boolean(), server_default=sa.text('true'),
nullable=False), nullable=False),
sa.PrimaryKeyConstraint('id'), sa.PrimaryKeyConstraint('id'),
mysql_engine='InnoDB' mysql_engine='InnoDB'
) )
op.create_table('vimauths', op.create_table('vimauths',
sa.Column('id', sa.String(length=36), nullable=False), sa.Column('id', sa.String(length=36), nullable=False),
sa.Column('vim_id', sa.String(length=255), nullable=False), sa.Column('vim_id', sa.String(length=255), nullable=False),
sa.Column('password', sa.String(length=128), nullable=False), sa.Column('password', sa.String(length=128), nullable=False),
sa.Column('auth_url', sa.String(length=255), nullable=False), sa.Column('auth_url', sa.String(length=255), nullable=False),
sa.Column('vim_project', sa.PickleType(), nullable=False), sa.Column('vim_project', sa.PickleType(), nullable=False),
sa.Column('auth_cred', sa.PickleType(), nullable=False), sa.Column('auth_cred', sa.PickleType(), nullable=False),
sa.ForeignKeyConstraint(['vim_id'], ['vims.id'], ), sa.ForeignKeyConstraint(['vim_id'], ['vims.id'], ),
sa.PrimaryKeyConstraint('id'), sa.PrimaryKeyConstraint('id'),
sa.UniqueConstraint('auth_url') sa.UniqueConstraint('auth_url')
) )
op.add_column(u'devices', sa.Column('placement_attr', sa.PickleType(), op.add_column('devices', sa.Column('placement_attr', sa.PickleType(),
nullable=True)) nullable=True))
op.add_column(u'devices', sa.Column('vim_id', sa.String(length=36), op.add_column('devices', sa.Column('vim_id', sa.String(length=36),
nullable=False)) nullable=False))
op.create_foreign_key(None, 'devices', 'vims', ['vim_id'], ['id']) op.create_foreign_key(None, 'devices', 'vims', ['vim_id'], ['id'])
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)