From: Justin Hunter Date: Sun, 12 Jul 2009 07:34:45 +0000 (-0700) Subject: make _add_foreign_keys method name more appropriate X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=2179164f19fbe1fda27eb787103c332a621b724b;p=dbsrgits%2FSQL-Translator-2.0-ish.git make _add_foreign_keys method name more appropriate --- diff --git a/lib/SQL/Translator/Parser/DBI.pm b/lib/SQL/Translator/Parser/DBI.pm index bad630c..73607b5 100644 --- a/lib/SQL/Translator/Parser/DBI.pm +++ b/lib/SQL/Translator/Parser/DBI.pm @@ -77,7 +77,7 @@ sub _add_tables { $self->_add_columns($view); } } - $self->_add_foreign_key($schema->get_table($_), $schema) for $schema->table_ids; + $self->_add_foreign_keys($schema->get_table($_), $schema) for $schema->table_ids; } sub _add_columns { @@ -112,7 +112,7 @@ sub _add_primary_key { $table->add_index($pk); } -sub _add_foreign_key { +sub _add_foreign_keys { my $self = shift; my $table = shift; my $schema = shift;