Fix downgrade in migration
Fixes a downgrade bug caused by a portprofile_bindings table definition mismatch between 2a6d0b51f4bb_cisco_plugin_cleanup and the initial definition. Change-Id: I051e5b41a4285b6cf24270ea6229b1bbca42106d Closes-Bug: #1250454
This commit is contained in:
parent
b1d56ed1a6
commit
fe3fae1069
@ -79,10 +79,10 @@ def downgrade(active_plugins=None, options=None):
|
|||||||
u'portprofile_bindings',
|
u'portprofile_bindings',
|
||||||
sa.Column(u'id', sa.String(255), nullable=False),
|
sa.Column(u'id', sa.String(255), nullable=False),
|
||||||
sa.Column(u'tenant_id', sa.String(255), nullable=True),
|
sa.Column(u'tenant_id', sa.String(255), nullable=True),
|
||||||
sa.Column(u'port_id', sa.Integer(), nullable=True),
|
sa.Column(u'port_id', sa.String(255), nullable=True),
|
||||||
sa.Column(u'portprofile_id', sa.String(255), nullable=True),
|
sa.Column(u'portprofile_id', sa.String(255), nullable=True),
|
||||||
sa.Column(u'portprofile_id', sa.Boolean(), nullable=False),
|
sa.Column(u'default', sa.Boolean(), nullable=False),
|
||||||
sa.ForeignKeyConstraint(['portprofile_id'], ['portprofiles.uuid'], ),
|
sa.ForeignKeyConstraint(['portprofile_id'], ['portprofiles.uuid'], ),
|
||||||
sa.ForeignKeyConstraint(['ports'], ['ports.id'], ),
|
sa.ForeignKeyConstraint(['port_id'], ['ports.id'], ),
|
||||||
sa.PrimaryKeyConstraint(u'id')
|
sa.PrimaryKeyConstraint(u'id')
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user