need to sort tables to ensure ordering
Justin Hunter [Sat, 5 Sep 2009 16:45:09 +0000 (09:45 -0700)]
lib/SQL/Translator/Parser/DDL/SQLite.pm

index 5cea747..b24307b 100644 (file)
@@ -37,7 +37,7 @@ role SQL::Translator::Parser::DDL::SQLite {
         my $schema = $translator->schema;
         my @tables = 
             map   { $_->[1] }
-#            sort  { $a->[0] <=> $b->[0] } 
+            sort  { $a->[0] <=> $b->[0] }
             map   { [ $result->{'tables'}{ $_ }->{'order'}, $_ ] }
             keys %{ $result->{'tables'} };