Fix broken database migration for Cisco plugin
Remove migration for a table that was never used. Correct table drop order due to foreignkey dependency. Closes bug: #1210219 Change-Id: I38bcedf7a84967bea2c1679a6a6ab51a9451b33a
This commit is contained in:
parent
cdd683a0c8
commit
d5984c754c
@ -43,10 +43,9 @@ def upgrade(active_plugins=None, options=None):
|
||||
if not migration.should_run(active_plugins, migration_for_plugins):
|
||||
return
|
||||
|
||||
op.drop_table(u'port_bindings')
|
||||
op.drop_table(u'services_bindings')
|
||||
op.drop_table(u'portprofiles')
|
||||
op.drop_table(u'portprofile_bindings')
|
||||
op.drop_table(u'portprofiles')
|
||||
op.drop_table(u'port_bindings')
|
||||
|
||||
|
||||
def downgrade(active_plugins=None, options=None):
|
||||
@ -68,16 +67,6 @@ def downgrade(active_plugins=None, options=None):
|
||||
sa.Column(u'vif_id', sa.String(255), nullable=True),
|
||||
sa.PrimaryKeyConstraint(u'id')
|
||||
)
|
||||
op.create_table(
|
||||
u'service_bindings',
|
||||
sa.Column(u'id', sa.Integer(), autoincrement=True,
|
||||
nullable=False),
|
||||
sa.Column(u'service_id', sa.String(255), nullable=True),
|
||||
sa.Column(u'mnget_id', sa.String(255), nullable=True),
|
||||
sa.Column(u'nbnet_id', sa.String(255), nullable=True),
|
||||
sa.Column(u'sbnet_id', sa.String(255), nullable=True),
|
||||
sa.PrimaryKeyConstraint(u'id')
|
||||
)
|
||||
op.create_table(
|
||||
u'portprofiles',
|
||||
sa.Column(u'uuid', sa.String(255), nullable=False),
|
||||
|
Loading…
Reference in New Issue
Block a user