diff options
author | Elena Ezhova <eezhova@mirantis.com> | 2013-07-31 11:39:59 +0400 |
---|---|---|
committer | Elena Ezhova <eezhova@mirantis.com> | 2013-08-12 12:15:07 +0400 |
commit | 21389a30011bda8233b1f5f2b4469a453246d4ef (patch) | |
tree | 30beed92fd041e361b4293fcf71066cf47fab701 /keystone/credential | |
parent | c21b458081b011089e6819c716e63331f8df0ce4 (diff) | |
download | keystone-21389a30011bda8233b1f5f2b4469a453246d4ef.tar.gz keystone-21389a30011bda8233b1f5f2b4469a453246d4ef.tar.xz keystone-21389a30011bda8233b1f5f2b4469a453246d4ef.zip |
Sync models with migrations
This patch syncs models with migrations for:
-Endpoint
-CredentialModel
-TokenModel
-TrustModel
No actual schema change is taking place, this patch just corrects errors
in the model definitions.
Made class Index avaliable in keystone.common.sql.core
partially implements bp db-sync-models-with-migrations
Change-Id: I52f5c455360b65a2d5d884bbbec078dca6d34451
Diffstat (limited to 'keystone/credential')
-rw-r--r-- | keystone/credential/backends/sql.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/keystone/credential/backends/sql.py b/keystone/credential/backends/sql.py index eab9dfea..8aab3511 100644 --- a/keystone/credential/backends/sql.py +++ b/keystone/credential/backends/sql.py @@ -30,6 +30,11 @@ class CredentialModel(sql.ModelBase, sql.DictBase): blob = sql.Column(sql.JsonBlob(), nullable=False) type = sql.Column(sql.String(255), nullable=False) extra = sql.Column(sql.JsonBlob()) + #TODO(eezhova):extra indexes should be removed. (23 migration). + __table_args__ = ( + sql.Index('user_id', 'user_id'), + sql.Index('credential_project_id_fkey', 'project_id') + ) class Credential(sql.Base, credential.Driver): |