From: Justin Hunter Date: Sat, 1 Aug 2009 23:32:01 +0000 (-0700) Subject: change current_timestamp to now) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a584e206c112b366ec9e704d6abbfbfc902e914d;p=dbsrgits%2FSQL-Translator-2.0-ish.git change current_timestamp to now) --- diff --git a/lib/SQL/Translator/Producer/SQL/PostgreSQL.pm b/lib/SQL/Translator/Producer/SQL/PostgreSQL.pm index 3f3679b..5d31c93 100644 --- a/lib/SQL/Translator/Producer/SQL/PostgreSQL.pm +++ b/lib/SQL/Translator/Producer/SQL/PostgreSQL.pm @@ -41,6 +41,7 @@ role SQL::Translator::Producer::SQL::PostgreSQL { method _create_column(Column $column) { my $size = $column->size; my $default_value = $column->default_value; + $default_value =~ s/^CURRENT_TIMESTAMP/now()/i if $default_value; my $column_def; $column_def = $column->name . ' ';