]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Drop service* tables only if they exist
authorJakub Libosvar <libosvar@redhat.com>
Mon, 27 Jan 2014 18:20:51 +0000 (19:20 +0100)
committerJakub Libosvar <libosvar@redhat.com>
Tue, 22 Apr 2014 10:05:15 +0000 (12:05 +0200)
commitd26bd87919990923b6fc85779f03705514d8d0b3
tree9a6a51b12dc89265e79cf2843f7ab237c0b7e7f5
parent09e5726336e8824ed71466c91bae30737941efac
Drop service* tables only if they exist

Tables servicedefinitions and servicetypes are not used by neutron but
created using db migration tool. If quantum-server in grizzly was
started without using migration tool then tables mentioned above are not
created. During migration from grizzly to havana alembic attempts to
drop these unused tables. This patch uses "IF EXISTS" clause when
dropping mentioned tables.

Closes-bug: #1273355
Change-Id: I33fcb3e1dc96ce37ec9c00987cb5a3a953ca691d
neutron/db/migration/alembic_migrations/versions/557edfc53098_new_service_types.py