From: Justin Hunter Date: Sun, 12 Jul 2009 16:40:15 +0000 (-0700) Subject: add ability to track temporary tables X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=51d17fb98b098ec2fbac2aaad7382476c49030ba;p=dbsrgits%2FSQL-Translator-2.0-ish.git add ability to track temporary tables --- diff --git a/lib/SQL/Translator/Object/Table.pm b/lib/SQL/Translator/Object/Table.pm index 5359c01..6531486 100644 --- a/lib/SQL/Translator/Object/Table.pm +++ b/lib/SQL/Translator/Object/Table.pm @@ -1,7 +1,7 @@ package SQL::Translator::Object::Table; use namespace::autoclean; use Moose; -use MooseX::Types::Moose qw(HashRef Str); +use MooseX::Types::Moose qw(Bool HashRef Str); use MooseX::AttributeHelpers; use SQL::Translator::Types qw(Column Constraint Index Schema Sequence); use SQL::Translator::Object::Schema; @@ -93,6 +93,12 @@ has 'sequences' => ( default => sub { {} }, ); +has 'temporary' => ( + is => 'rw', + isa => Bool, + default => 0 +); + __PACKAGE__->meta->make_immutable; 1;