projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Fix inconsistent naming of duplicate unique constraints
[dbsrgits/DBIx-Class-Schema-Loader.git]
/
lib
/
DBIx
/
Class
/
Schema
/
Loader
/
DBI
/
Pg.pm
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
index
178b55c
..
92ff654
100644
(file)
--- a/
lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
+++ b/
lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
@@
-132,7
+132,8
@@
sub _table_uniq_info {
c.relkind = 'r' AND
i.relkind = 'i' AND
n.nspname = ? AND
- c.relname = ?}
+ c.relname = ?
+ ORDER BY i.relname}
);
$uniq_sth->execute($table->schema, $table->name);