]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Correct cisco_ml2_apic_contracts.router_id length
authorVladislav Belogrudov <vladislav.belogrudov@oracle.com>
Wed, 17 Jun 2015 11:20:16 +0000 (14:20 +0300)
committerHenry Gessau <gessau@cisco.com>
Thu, 1 Oct 2015 01:14:26 +0000 (21:14 -0400)
commitee1477ac1a8ef90413a0cb2acf90cd1b2889882b
treec7ac554089d7c89477a72882463908c15e6a2399
parent9ccefdac563958f257e76d66c13383ab0716e59c
Correct cisco_ml2_apic_contracts.router_id length

Some database engines require exact match of sizes of foreign keys
and referenced fields. Foreign key router_id of table
cisco_ml2_apic_contracts is varchar(64) but it references field
id varchar(36) of table routers. This gives error while running
migration scripts in such databases.

This change only applies to new OpenStack installations

Change-Id: I94a21ffbb82446499b1a55bd8b666d7395e4908a
Related-Bug: #1463806
Closes-Bug: #1465678
neutron/db/migration/alembic_migrations/cisco_init_ops.py