},
);
- $self->db_query("DROP SCHEMA tax CASCADE;", 1);
- map({ $self->db_query($_, 0); } @queries);
+ $self->db_query("DROP SCHEMA tax CASCADE;", may_fail => 1);
+ $self->db_query($_) for @queries;
return 1;
sub run {
my ($self) = @_;
- return $self->create_tables && $self->do_copy;
+ return $self->create_tables && $self->do_copy ? 1 : undef;
}
1;