projects
/
dbsrgits/SQL-Translator-2.0-ish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(parent:
5ea6903
)
change current_timestamp to now)
Justin Hunter [Sat, 1 Aug 2009 23:32:01 +0000 (16:32 -0700)]
lib/SQL/Translator/Producer/SQL/PostgreSQL.pm
patch
|
blob
|
blame
|
history
diff --git
a/lib/SQL/Translator/Producer/SQL/PostgreSQL.pm
b/lib/SQL/Translator/Producer/SQL/PostgreSQL.pm
index
3f3679b
..
5d31c93
100644
(file)
--- 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 . ' ';