Skip to content

Commit

Permalink
#14797 - Fix DEFAULT CURRENT_TIMESTAMP
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeckerson committed Jan 31, 2020
1 parent 483ccbf commit cb039b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion phalcon/Db/Dialect/Mysql.zep
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ class Mysql extends Dialect
let defaultValue = column->getDefault();

if memstr(strtoupper(defaultValue), "CURRENT_TIMESTAMP") {
let columnLine .= " DEFAULT CURRENT_TIMESTAMP";
let columnLine .= " DEFAULT " . defaultValue;
} else {
let columnLine .= " DEFAULT \"" . addcslashes(defaultValue, "\"") . "\"";
}
Expand Down

0 comments on commit cb039b2

Please sign in to comment.