$DEBUG = 0 unless defined $DEBUG;
use Data::Dumper;
-use Carp;
+use Carp::Clan qw/^SQL::Translator/;
use Exporter;
use base qw(Exporter);
@EXPORT_OK = qw(parse);
/);
# back compat
- if (my $evt = $data{database_event}) {
- carp 'The database_event tag is deprecated - please use database_events, which can take multiple comma separated event names';
+ if (my $evt = $data{database_event} and $translator->{show_warnings}) {
+ carp 'The database_event tag is deprecated - please use database_events (which can take one or more comma separated event names)';
$data{database_events} = join (', ',
$data{database_events} || (),
$evt,
{
my $obj;
$obj = SQL::Translator->new(
- show_warnings => 1,
+ show_warnings => 0,
from => "XML-SQLFairy",
filename => "$Bin/data/xml/schema.xml",
to => "TTSchema",
[%- END %]};
my $obj;
$obj = SQL::Translator->new(
- show_warnings => 1,
+ show_warnings => 0,
from => "XML-SQLFairy",
filename => "$Bin/data/xml/schema.xml",
to => "TTSchema",