]> review.fuel-infra Code Review - openstack-build/neutron-build.git/commit
Sync FK constraints in db models with migration scripts
authorJakub Libosvar <libosvar@redhat.com>
Thu, 20 Aug 2015 12:33:59 +0000 (12:33 +0000)
committerJakub Libosvar <libosvar@redhat.com>
Thu, 20 Aug 2015 13:22:01 +0000 (13:22 +0000)
commitfad17a2d8449f8a364f40896ee0efe8248dbffd3
tree1a4ba1d00624de525778878d54eea6d663b1083b
parent194489b0f4885a2909333446a815896ea4d60320
Sync FK constraints in db models with migration scripts

We do have a functional test that compares Neutron's db models with
migration scripts. The comparison is based on alembic library that had a
bug which is gonna be solved in the next release [1]. Once we start
using newer alembic, functional test mentioned above will start failing
due to models and scripts are not in sync.

This patch adds needed constraints discovered by running functional test
locally with dev version of alembic.

Note: There is already a patch [2] that fixes QoS.

[1] https://bitbucket.org/zzzeek/alembic/issues/317
[2] https://review.openstack.org/#/c/214215/

Change-Id: I0d0bddb05f543365d09e592bd81759534de49367
Closes-Bug: 1486936
neutron/db/l3_dvrscheduler_db.py
neutron/db/migration/alembic_migrations/versions/HEADS
neutron/db/migration/alembic_migrations/versions/liberty/contract/2e5352a0ad4d_add_missing_foreign_keys.py [new file with mode: 0644]
neutron/db/models_v2.py