summaryrefslogtreecommitdiffstats
path: root/keystone/catalog
diff options
context:
space:
mode:
authorDolph Mathews <dolph.mathews@gmail.com>2013-03-13 21:46:27 -0500
committerDolph Mathews <dolph.mathews@gmail.com>2013-03-18 10:31:53 -0500
commit85910ce347e618d604a7421e95e5984c13f73f10 (patch)
treeb2b06a069bc71eeb583913856cbff701b38d941b /keystone/catalog
parent16b464376ea5d2a056cb0a2a9ea946eefa372af6 (diff)
downloadkeystone-85910ce347e618d604a7421e95e5984c13f73f10.tar.gz
keystone-85910ce347e618d604a7421e95e5984c13f73f10.tar.xz
keystone-85910ce347e618d604a7421e95e5984c13f73f10.zip
Utilize legacy_endpoint_id column (bug 1154918)
This column was created in migration 11 but isn't used because it wasn't added to the model definition. Attempting to store data here ended up putting it into 'extra'. Change-Id: I02680b5213f09fe3cddcf5365104554d3e6d6b8a
Diffstat (limited to 'keystone/catalog')
-rw-r--r--keystone/catalog/backends/sql.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/keystone/catalog/backends/sql.py b/keystone/catalog/backends/sql.py
index 8a765681..9175a9e6 100644
--- a/keystone/catalog/backends/sql.py
+++ b/keystone/catalog/backends/sql.py
@@ -36,8 +36,10 @@ class Service(sql.ModelBase, sql.DictBase):
class Endpoint(sql.ModelBase, sql.DictBase):
__tablename__ = 'endpoint'
- attributes = ['id', 'interface', 'region', 'service_id', 'url']
+ attributes = ['id', 'interface', 'region', 'service_id', 'url',
+ 'legacy_endpoint_id']
id = sql.Column(sql.String(64), primary_key=True)
+ legacy_endpoint_id = sql.Column(sql.String(64))
interface = sql.Column(sql.String(8), primary_key=True)
region = sql.Column('region', sql.String(255))
service_id = sql.Column(sql.String(64),