slight tweak to now() -> CURRENT_TIMESTAMP rewriting
Robert Buels [Fri, 16 Apr 2010 22:43:05 +0000 (15:43 -0700)]
lib/DBIx/Class/Schema/Loader/DBI/Pg.pm

index 4ec2088..b089a04 100644 (file)
@@ -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';
         }
     }