From: Robert Buels Date: Fri, 16 Apr 2010 22:43:05 +0000 (-0700) Subject: slight tweak to now() -> CURRENT_TIMESTAMP rewriting X-Git-Tag: 0.07000~62 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=433ddfb1bd8210e6e854ce1b7ac77e585278cadb;p=dbsrgits%2FDBIx-Class-Schema-Loader.git slight tweak to now() -> CURRENT_TIMESTAMP rewriting --- diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm index 4ec2088..b089a04 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm @@ -203,7 +203,7 @@ EOF # alias now() to current_timestamp for deploying to other DBs if (eval { lc ${ $result->{$col}{default_value} } eq 'now()' }) { - $result->{$col}{default_value} = \'CURRENT_TIMESTAMP'; + ${$result->{$col}{default_value}} = 'CURRENT_TIMESTAMP'; } }