Fix inconsistent naming of duplicate unique constraints
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Wed, 21 May 2014 16:50:59 +0000 (17:50 +0100)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Wed, 21 May 2014 16:50:59 +0000 (17:50 +0100)
commit6c4f5a4a8a6962789ae901125558f4288cb708ae
tree156bf12773613332268f200c725e06f1c4141d36
parentca4cffd1dac30e9d1f88f95b089c96bd03eb1037
Fix inconsistent naming of duplicate unique constraints

Sort the constraints by name in _table_uniq_info, so we consistently
pick the same constraint if there are several on the same set of
columns.
12 files changed:
Changes
lib/DBIx/Class/Schema/Loader/DBI.pm
lib/DBIx/Class/Schema/Loader/DBI/DB2.pm
lib/DBIx/Class/Schema/Loader/DBI/Informix.pm
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm
lib/DBIx/Class/Schema/Loader/DBI/MSSQL.pm
lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm
lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
lib/DBIx/Class/Schema/Loader/DBI/SQLAnywhere.pm
lib/DBIx/Class/Schema/Loader/DBI/SQLite.pm
lib/DBIx/Class/Schema/Loader/DBI/Sybase.pm
lib/DBIx/Class/Schema/Loader/DBI/mysql.pm