Get or set the setting that determines the behavior when the column value is greater than length characters. Valid values for BEHAVIOR are:
Throw an exception.
Truncate the column value to the correct length.
Print a warning message.
The default value is "fatal".
my @classes = $loader->make_modules(
db => $db,
post_init_hook => sub {
my $meta = shift;
$meta->{allow_inline_column_values} = 1;
foreach my $column (keys %{$meta->{columns}}) {
my $c = $meta->{columns}->{$column};
$c->{overflow} = 'warn';
next unless defined $c->{default};
if ($c->{default} =~ /\S\s/o) {
$c->{default} =~ s{\s+$}{}o;
}
if ($c->{default} eq 'NULL') {
delete $c->{default};
}
}
},
);