From 2eec4be60c8463c58497bbf21b899b6a7e2ea24b Mon Sep 17 00:00:00 2001 From: Ann Kamyshnikova Date: Tue, 22 Oct 2013 11:02:55 +0400 Subject: [PATCH] Fix downgrade in migration In 63afba73813_ovs_tunnelendpoints_id_unique migration mistake in usage drop_constraint parameter type_ and positional agruments name and table_name. Closes-Bug: #1243073 Change-Id: I60cd6e7f18b193b71f8f20759251b9f59a79965a --- .../versions/63afba73813_ovs_tunnelendpoints_id_unique.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/neutron/db/migration/alembic_migrations/versions/63afba73813_ovs_tunnelendpoints_id_unique.py b/neutron/db/migration/alembic_migrations/versions/63afba73813_ovs_tunnelendpoints_id_unique.py index 6ab361d8a9..c5f2550592 100644 --- a/neutron/db/migration/alembic_migrations/versions/63afba73813_ovs_tunnelendpoints_id_unique.py +++ b/neutron/db/migration/alembic_migrations/versions/63afba73813_ovs_tunnelendpoints_id_unique.py @@ -58,7 +58,7 @@ def downgrade(active_plugins=None, options=None): return op.drop_constraint( - name=CONSTRAINT_NAME, - tablename=TABLE_NAME, - type='unique' + CONSTRAINT_NAME, + TABLE_NAME, + type_='unique' )