From: Justin Hunter Date: Mon, 24 Aug 2009 22:01:22 +0000 (-0700) Subject: add schema to new table X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d1f9323ac102d79e9387e9ad895a63b69b4433ba;p=dbsrgits%2FSQL-Translator-2.0-ish.git add schema to new table --- diff --git a/lib/SQL/Translator/Parser/DBI.pm b/lib/SQL/Translator/Parser/DBI.pm index 5902489..42550d0 100644 --- a/lib/SQL/Translator/Parser/DBI.pm +++ b/lib/SQL/Translator/Parser/DBI.pm @@ -62,7 +62,7 @@ role SQL::Translator::Parser::DBI { while (my $table_info = $sth->fetchrow_hashref) { if ($table_info->{TABLE_TYPE} =~ /^(TABLE|LOCAL TEMPORARY|GLOBAL TEMPORARY)$/) { my $temp = $table_info->{TABLE_TYPE} =~ /TEMPORARY$/ ? 1 : 0; - my $table = SQL::Translator::Object::Table->new({ name => $table_info->{TABLE_NAME}, temporary => $temp }); + my $table = SQL::Translator::Object::Table->new({ name => $table_info->{TABLE_NAME}, temporary => $temp, schema => $schema }); $schema->add_table($table); $self->_add_columns($table);