use Carp::Clan qw/^DBIx::Class/;
use Class::C3;
-our $VERSION = '0.06001';
+our $VERSION = '0.07000';
=head1 NAME
my $self = shift;
$self->next::method(@_);
+
$self->{db_schema} ||= 'public';
-}
+ if (not defined $self->preserve_case) {
+ $self->preserve_case(0);
+ }
+}
sub _table_uniq_info {
my ($self, $table) = @_;
delete $result->{$col}{default_value};
}
-# alias now() to current_timestamp for deploying to other DBs
- if (eval { lc ${ $result->{$col}{default_value} } eq 'now()' }) {
+# alias now() to CURRENT_TIMESTAMP for deploying to other DBs
+ if (eval { lc ${ $result->{$col}{default_value} }||'' eq 'now()' }) {
+ # do not use a ref to a constant, that breaks Data::Dump output
${$result->{$col}{default_value}} = 'CURRENT_TIMESTAMP';
}
}