From: Justin Hunter Date: Thu, 21 Oct 2010 21:58:49 +0000 (-0700) Subject: change method used to determine if a table is valid X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=refs%2Fremotes%2Forigin%2Fmaster;p=dbsrgits%2FSQL-Translator-2.0-ish.git change method used to determine if a table is valid --- diff --git a/lib/SQL/Translator/Object/Table.pm b/lib/SQL/Translator/Object/Table.pm index 773fc3b..35f9d9e 100644 --- a/lib/SQL/Translator/Object/Table.pm +++ b/lib/SQL/Translator/Object/Table.pm @@ -170,7 +170,7 @@ class SQL::Translator::Object::Table extends SQL::Translator::Object is dirty { return $order; } - method is_valid { return $self->get_columns ? 1 : undef } + method is_valid { return $self->has_columns ? 1 : undef } before name($name?) { die "Can't use table name $name, table already exists" if $name && $self->schema->exists_table($name) && $name ne $self->name }