From: Justin Hunter Date: Sat, 16 Jan 2010 09:08:17 +0000 (-0700) Subject: fix for dropping procedures and temporarily remove die X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c886d302e1c2a219485d0923a1795b16f63a3a5f;p=dbsrgits%2FSQL-Translator-2.0-ish.git fix for dropping procedures and temporarily remove die --- diff --git a/lib/SQL/Translator/Object/Schema.pm b/lib/SQL/Translator/Object/Schema.pm index 0a954f2..80f268d 100644 --- a/lib/SQL/Translator/Object/Schema.pm +++ b/lib/SQL/Translator/Object/Schema.pm @@ -114,7 +114,12 @@ class SQL::Translator::Object::Schema extends SQL::Translator::Object { around remove_trigger(Trigger|Str $trigger) { my $name = is_Trigger($trigger) ? $trigger->name : $trigger; - die "Can't drop non-existant trigger " . $name unless $self->exists_trigger($name); +#### die "Can't drop non-existant trigger " . $name unless $self->exists_trigger($name); + $self->$orig($name); + } + + around remove_procedure(Procedure|Str $procedure) { + my $name = is_Procedure($procedure) ? $procedure->name : $procedure; $self->$orig($name); }