deb-migrate/migrate/changeset/databases
Matt Riedemann 7bb74f70e9 Fix ibmdb2 unique constraint handling for sqlalchemy 0.9
The ibmdb2 unique constraint code was accessing the private _all_cols
member var in iterating over columns which breaks in sqlalchemy 0.9 so
fix up the code to not use internals of sqlalchemy.

UniqueConstraint in sqlalchemy extends ColumnCollectionConstraint
which implements __iter__ to generate a tuple of the columns in
the constraint, so we just iterate over the constraint as the fix.

This is based on a patch from Rahul Priyadarshi in ibm-db-sa issue
158:

https://code.google.com/p/ibm-db/issues/detail?id=158

Co-Authored-By: Rahul Priyadarshi <rahul.priyadarshi@in.ibm.com>

Change-Id: I0f06f6314c382e83573d762abe5981db0a02a83a
2014-08-04 07:34:08 -07:00
..
__init__.py Add DB2 10.5 Support 2014-02-17 07:17:31 -08:00
firebird.py Eradicate trailing whitespace 2014-02-26 15:04:54 -05:00
ibmdb2.py Fix ibmdb2 unique constraint handling for sqlalchemy 0.9 2014-08-04 07:34:08 -07:00
mysql.py Use native quote attribute introduced in sqla 0.9 2014-03-05 08:20:49 -05:00
oracle.py drop SQLAlchemy < 0.6 compatibility code 2011-10-28 10:59:10 +02:00
postgres.py drop SQLAlchemy < 0.6 compatibility code 2011-10-28 10:59:10 +02:00
sqlite.py Merge "Move patch from oslo to drop unique constraints with sqlite" 2014-05-05 15:15:03 +00:00
visitor.py Conditionally import ibmdb2/ibm_db_sa 2014-03-04 10:12:40 -08:00