/;
use Carp::Clan qw/^DBIx::Class/;
-our $VERSION = '0.06000';
+our $VERSION = '0.07000';
=head1 NAME
=head1 DESCRIPTION
-See L<DBIx::Class::Schema::Loader::Base>.
+See L<DBIx::Class::Schema::Loader> and L<DBIx::Class::Schema::Loader::Base>.
=cut
sub _setup {
my $self = shift;
+ $self->next::method(@_);
+
$self->{db_schema} ||=
($self->schema->storage->dbh->selectrow_array('select user'))[0];
+
+ if (not defined $self->preserve_case) {
+ $self->preserve_case(0);
+ }
}
sub _tables_list {
}
delete $info->{default_value} if ref($info->{default_value}) eq 'SCALAR' && ${ $info->{default_value} } eq 'NULL';
+
+ if (eval { lc ${ $info->{default_value} } }||'' eq 'current timestamp') {
+ ${ $info->{default_value} } = 'CURRENT_TIMESTAMP';
+ }
}
return $result;