Skip to content

Commit

Permalink
Create table was causing issues due this datetime string default, rep…
Browse files Browse the repository at this point in the history
…laced by now()
  • Loading branch information
pstimpel authored and mistic100 committed Nov 25, 2018
1 parent 008951a commit 9f2d444
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maintain.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function install($plugin_version, &$errors=array())
pwg_query('
CREATE TABLE IF NOT EXISTS `' . $this->table . '` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`date` datetime NOT NULL DEFAULT "0000-00-00 00:00:00",
`date` datetime NOT NULL DEFAULT now(),
`author` varchar(255) NOT NULL,
`author_id` smallint(5) DEFAULT NULL,
`anonymous_id` varchar(45) NOT NULL,
Expand Down

0 comments on commit 9f2d444

Please sign in to comment.