projects
/
dbsrgits/DBIx-Class-Schema-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
8e64075
)
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
patch
|
blob
|
blame
|
history
diff --git
a/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
b/lib/DBIx/Class/Schema/Loader/DBI/Pg.pm
index
4ec2088
..
b089a04
100644
(file)
--- 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';
}
}