Improve DB migration (code to drop a foreign key constraint)
Bug #907254 reported by
Cor Cornelisse
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Fix Released
|
Wishlist
|
Unassigned |
Bug Description
Regarding:
nova/db/
I think it's cleaner to use SQL Alchemy to drop the foreign key constraint, since this way is used in the other schema version migrations as well. Right now version 064 looks like it has been "quick fixed" by using "If mysql -> execute drop statement".
For reference, see
nova/db/
Which is properly using SQL Alchemy to remove a foreign key constraint
Proposed fix:
Changed in nova: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Feel free to propose your code for merging to Gerrit, its content can be discussed in the code review.