]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix Enum usage in 589f9237ca0e_cisco_n1kv_ml2_driver_tables
authorAnn Kamyshnikova <akamyshnikova@mirantis.com>
Tue, 9 Jun 2015 08:30:06 +0000 (11:30 +0300)
committerAnn Kamyshnikova <akamyshnikova@mirantis.com>
Thu, 11 Jun 2015 12:19:12 +0000 (15:19 +0300)
commit1552f311532fdbd03a79ecfc1fae488b072c5a14
tree3e8b5518616d6ac54ab7ce6a3047a87c28af6dc5
parent692da2b7c70dd57c692a36f7a6d8f55fc1fa2a44
Fix Enum usage in 589f9237ca0e_cisco_n1kv_ml2_driver_tables

PostgreSQL is more sensitive with types than MySQL, it creates a
separate type when a Enum is created. In migration 589f9237ca0e
type profile_type is trying to be created, but the type with such
name was already created in havana_initial migration.

The solution for this is not to create type in 589f9237ca0e
migration when dialect is PostgreSQL and use already created.

Closes-bug: #1463301

Change-Id: I66e74d50cc70673de8635616076779cc20cde113
neutron/db/migration/alembic_migrations/versions/589f9237ca0e_cisco_n1kv_ml2_driver_tables.py