commit ed2b65a5ddc8536470797c39467b20e934b02dc0
Author: David Stanek <email address hidden>
Date: Fri Oct 3 18:22:41 2014 +0000
Force SQLite to properly deal with foreign keys
This will help with testing since SQLite will start enforcing the
foreign key relationships.
We will still have a problem with migrations for tables that refer to
each other. SQLite can't alter tables and sqlalchemy-migrates tmp table
strategy for migrations fails in this situation.
This patch did:
1. Add FK support for the tests. Disable it by default.
2. Make sure the Fk is disabled for test_sql_upgrade and
identity.backens.test_sql
Reviewed: https:/ /review. openstack. org/126030 /git.openstack. org/cgit/ openstack/ keystone/ commit/ ?id=ed2b65a5ddc 8536470797c3946 7b20e934b02dc0
Committed: https:/
Submitter: Zuul
Branch: master
commit ed2b65a5ddc8536 470797c39467b20 e934b02dc0
Author: David Stanek <email address hidden>
Date: Fri Oct 3 18:22:41 2014 +0000
Force SQLite to properly deal with foreign keys
This will help with testing since SQLite will start enforcing the
foreign key relationships.
We will still have a problem with migrations for tables that refer to
each other. SQLite can't alter tables and sqlalchemy-migrates tmp table
strategy for migrations fails in this situation.
This patch did: backens. test_sql
1. Add FK support for the tests. Disable it by default.
2. Make sure the Fk is disabled for test_sql_upgrade and
identity.
Partial-Bug: #1744195
Co-Authored-By: wangxiyuan<email address hidden> cb2c54215d54491 665db1caa22
Change-Id: I276af7c0125dc2