From: Dagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Date: Tue, 5 Feb 2008 16:32:20 +0000 (+0000)
Subject: Make sure to get the constraint columns in the right order.
X-Git-Tag: 0.04006~19
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=fbc9e19665eb41c3ada2166c37e0ba6eaaea515d;p=dbsrgits%2FDBIx-Class-Schema-Loader.git

Make sure to get the constraint columns in the right order.
---

diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm b/lib/DBIx/Class/Schema/Loader/DBI/Oracle.pm
index e687e75..3be38e2 100644
--- 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);