projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
d2b1a22
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Parser/DDL/SQLite.pm
b/lib/SQL/Translator/Parser/DDL/SQLite.pm
index
5cea747
..
b24307b
100644
(file)
--- a/
lib/SQL/Translator/Parser/DDL/SQLite.pm
+++ b/
lib/SQL/Translator/Parser/DDL/SQLite.pm
@@
-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'} };