fix for dropping procedures and temporarily remove die
Justin Hunter [Sat, 16 Jan 2010 09:08:17 +0000 (02:08 -0700)]
lib/SQL/Translator/Object/Schema.pm

index 0a954f2..80f268d 100644 (file)
@@ -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);
     }