From: Justin Hunter Date: Fri, 9 Oct 2009 13:55:52 +0000 (-0700) Subject: add drop_view X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ef1b41c6a2e6326a60271b627226a7686f1382af;p=dbsrgits%2FSQL-Translator-2.0-ish.git add drop_view --- diff --git a/lib/SQL/Translator/Object/Compat.pm b/lib/SQL/Translator/Object/Compat.pm index 5db54c2..e85b9b8 100644 --- a/lib/SQL/Translator/Object/Compat.pm +++ b/lib/SQL/Translator/Object/Compat.pm @@ -1,7 +1,7 @@ use MooseX::Declare; role SQL::Translator::Object::Compat { use MooseX::Types qw(Any ArrayRef Int Str); - use SQL::Translator::Types qw(Column Constraint Index Table); + use SQL::Translator::Types qw(Column Constraint Index Table View); use MooseX::MultiMethods; @@ -30,6 +30,7 @@ role SQL::Translator::Object::Compat { method drop_column(Column|Str $column, Int :$cascade = 0) { $self->remove_column($column, cascade => $cascade) } method drop_index(Index|Str $index) { $self->remove_index($index) } method drop_constraint(Constraint|Str $constraint) { $self->remove_constraint($constraint) } + method drop_view(View|Str $view) { $self->remove_view($view) } method get_fields { $self->get_columns } method get_field { $self->get_column }