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';
}
}