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
a3668182d6
commit
1858b0ae7f
@ -79,10 +79,10 @@ def downgrade(active_plugins=None, options=None):
|
||||
u'portprofile_bindings',
|
||||
sa.Column(u'id', sa.String(255), nullable=False),
|
||||
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.Boolean(), nullable=False),
|
||||
sa.Column(u'default', sa.Boolean(), nullable=False),
|
||||
sa.ForeignKeyConstraint(['portprofile_id'], ['portprofiles.uuid'], ),
|
||||
sa.ForeignKeyConstraint(['ports'], ['ports.id'], ),
|
||||
sa.ForeignKeyConstraint(['port_id'], ['ports.id'], ),
|
||||
sa.PrimaryKeyConstraint(u'id')
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user