db.utils.create_shadow_table() doesn't work if we have table with Enum column
Bug #1194106 reported by
Boris Pavlovic
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Compute (nova) |
Invalid
|
Low
|
Unassigned | ||
oslo.db |
Confirmed
|
Low
|
Unassigned |
Bug Description
In postgres we are not able to create two times Enum with the same name.
So If we try to make a shadow table for table we will get exception that Enum with the same name already exists.
So we should rename our Enum.
I think that shadow_prefix + original_name will be good convention.
Changed in nova: | |
assignee: | nobody → Boris Pavlovic (boris-42) |
status: | New → In Progress |
Changed in nova: | |
importance: | Undecided → Low |
Changed in nova: | |
assignee: | Boris Pavlovic (boris-42) → Yongli He (yongli-he) |
Changed in nova: | |
assignee: | Yongli He (yongli-he) → Boris Pavlovic (boris-42) |
tags: | added: postgresql |
Changed in oslo.db: | |
status: | New → Confirmed |
importance: | Undecided → Low |
To post a comment you must log in.
Fix proposed to branch: master /review. openstack. org/34643
Review: https:/