projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Make sure to get the constraint columns in the right order.
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
lib
/
DBIx
/
Class
/
Schema
/
Loader
/
DBI
/
Oracle.pm
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm
b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm
index
e687e75
..
3be38e2
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm
@@
-83,6
+83,7
@@
sub _table_uniq_info {
SELECT constraint_name, ucc.column_name
FROM user_constraints JOIN user_cons_columns ucc USING (constraint_name)
WHERE ucc.table_name=? AND constraint_type='U'
+ ORDER BY ucc.position
},
{}, 1);