sql migration helpers incorrectly inspect for FKs
Bug #1398470 reported by
Henry Nash
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Identity (keystone) |
Fix Released
|
Medium
|
Henry Nash |
Bug Description
Our sql migration tests utilise the migration_helpers to execute such things as adding and removing constraints. In the case of ForeignKeys, the remove helper uses a method like this:
def get_constraints
fkeys = [fk.name for fk in table.constraints
if (column_name in fk.columns and
return keys
The test for column name in fk_colums is unsafe as written, since there are more than just ForeignKeyContr
Changed in keystone: | |
assignee: | nobody → Henry Nash (henry-nash) |
importance: | Undecided → High |
milestone: | none → kilo-1 |
Changed in keystone: | |
importance: | High → Medium |
Changed in keystone: | |
status: | Fix Committed → Fix Released |
Changed in keystone: | |
milestone: | kilo-1 → 2015.1.0 |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/138468
Review: https:/