Credential table has foreign key constraint
referring to tenant table which is dropped.
Since sqlite does not support alter table
drop constraint, the foreign key constraint
was not dropped. When we try to load credential
table using sqlite backend it fails because tenant
table does not exist. Fix is provided such that
the credential table is recreated without foreign
key constraint and the data is moved from old
credential table to the new credential table.
Reviewed: https:/ /review. openstack. org/38219 github. com/openstack/ keystone/ commit/ 0a401529947c98a b761256e233b157 071a57ab70
Committed: http://
Submitter: Jenkins
Branch: master
commit 0a401529947c98a b761256e233b157 071a57ab70
Author: Nachiappan VR N <email address hidden>
Date: Mon Jul 22 15:50:33 2013 -0700
Fixing broken credential schema in sqlite.
Credential table has foreign key constraint
referring to tenant table which is dropped.
Since sqlite does not support alter table
drop constraint, the foreign key constraint
was not dropped. When we try to load credential
table using sqlite backend it fails because tenant
table does not exist. Fix is provided such that
the credential table is recreated without foreign
key constraint and the data is moved from old
credential table to the new credential table.
Fixes Bug #1190383
Change-Id: I3afb04254f33e1 2fccb7da84c8674 feba36622c8