]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Fix cisco_csr_identifier_map.ipsec_site_conn_id
authorVladislav Belogrudov <vladislav.belogrudov@oracle.com>
Wed, 17 Jun 2015 11:02:22 +0000 (14:02 +0300)
committerVladislav Belogrudov <vladislav.belogrudov@oracle.com>
Wed, 17 Jun 2015 11:05:53 +0000 (14:05 +0300)
commit76dd333167920f447bdbedbbee10fdab593abe5b
tree1e85bccdef6abd4acc63bdcc8287049a560c8876
parent03a5626f1d23a6237a4ee8e95811bf21c1b20b5a
Fix cisco_csr_identifier_map.ipsec_site_conn_id

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

This fix only applies to new installations. Existing databases will
be corrected by migration scripts introduced in
https://review.openstack.org/190569 - they will take care of resizing
the field and adjusting the model.

Change-Id: I6cc9625a2d96d1330b06eb727cc7fa5363c697b8
Depends-On: I384a9bbaba05ef94174b666bdcfb276eedc74134
Closes-Bug: #1463806
neutron/db/migration/alembic_migrations/cisco_init_ops.py