X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FPg.pm;fp=lib%2FDBIx%2FClass%2FSchema%2FLoader%2FDBI%2FPg.pm;h=e8fb9de02fcf56cb06ddb6fd1c05643bec31558e;hb=6e566cc4a06b1661597200611a03320f969e2566;hp=d8a8b9e29aeee2b3ed7ba186f87335a62e5a8d3c;hpb=58f0690e662154f95771f7a6b7e12899e874bc7e;p=dbsrgits%2FDBIx-Class-Schema-Loader.git diff --git a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm index d8a8b9e..e8fb9de 100644 --- a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm +++ b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm @@ -205,10 +205,10 @@ EOF delete $result->{$col}{default_value}; } -# alias now() to CURRENT_TIMESTAMP for deploying to other DBs +# 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'; + ${$result->{$col}{default_value}} = 'current_timestamp'; } }