Return FK info in a deterministic order in ::DBI::InterBase
Dagfinn Ilmari Mannsåker [Mon, 28 Jul 2014 23:20:31 +0000 (00:20 +0100)]
lib/DBIx/Class/Schema/Loader/DBI/InterBase.pm

index 0fecdbb..44bb9bc 100644 (file)
@@ -121,7 +121,7 @@ EOF
         );
     }
 
-    foreach my $fk (keys %$remote_table) {
+    foreach my $fk (sort keys %$remote_table) {
         push @rels, {
             local_columns => $local_cols->{$fk},
             remote_columns => $remote_cols->{$fk},