]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Normalize Oracle reflected FK constraint name
authorMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Mar 2017 15:20:53 +0000 (11:20 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Mon, 13 Mar 2017 23:31:30 +0000 (19:31 -0400)
commit6b0e12fd6f50a75750daf71ddff4bf32565fdf86
treefb196a35d800c410db10b48152afda3de569bf66
parent4a886e519ff227039a9d603aa4727c6f828f93ff
Normalize Oracle reflected FK constraint name

Oracle reflection now "normalizes" the name given to a foreign key
constraint, that is, returns it as all lower case for a case
insensitive name.  This was already the behavior for indexes
and primary key constraints as well as all table and column names.
This will allow Alembic autogenerate scripts to compare and render
foreign key constraint names correctly when initially specified
as case insensitive.

Change-Id: Ibb34ec6ce7cb244d1c4ae9d44ce2d37d37227e69
Fixes: #3276
doc/build/changelog/changelog_12.rst
doc/build/changelog/migration_12.rst
lib/sqlalchemy/dialects/oracle/base.py
lib/sqlalchemy/testing/suite/test_reflection.py
test/requirements.py