Base on the database schema, the domain_id column in identity_provider
is not unique and has the ForeignKey for project.id. But the IdP sql
model is different. It marks the domain_id is unique and the ForeignKey
is lost.
This patch removes the unique restriction and adds the FK back, ultimately
making the relationship between domains and identity provider 1:many.
Reviewed: https:/ /review. openstack. org/559676 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=b6da8a1b897 6579e4bf4025b58 a69a9be539c847
Committed: https:/
Submitter: Zuul
Branch: master
commit b6da8a1b8976579 e4bf4025b58a69a 9be539c847
Author: wangxiyuan <email address hidden>
Date: Mon Apr 9 17:25:14 2018 +0800
Update IdP sql model
Base on the database schema, the domain_id column in identity_provider
is not unique and has the ForeignKey for project.id. But the IdP sql
model is different. It marks the domain_id is unique and the ForeignKey
is lost.
This patch removes the unique restriction and adds the FK back, ultimately
making the relationship between domains and identity provider 1:many.
Change-Id: I13ecb0ab0434f5 614f31d151e708f 299cf8e8adb
Partial-bug: #1760843