From f6eaf2e09a1a4b5c67f254858ca32d95145ed437 Mon Sep 17 00:00:00 2001 From: printempw Date: Sun, 7 Feb 2016 23:48:07 +0800 Subject: [PATCH] fixed 'Invalid default value for `last_modified`' because specifying CURRENT_TIMESTAMP for datetime field --- admin/install.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/admin/install.php b/admin/install.php index 982a90c7..30e84a7f 100644 --- a/admin/install.php +++ b/admin/install.php @@ -3,7 +3,7 @@ * @Author: printempw * @Date: 2016-01-16 23:01:33 * @Last Modified by: prpr - * @Last Modified time: 2016-02-06 23:06:23 + * @Last Modified time: 2016-02-07 23:47:17 * * Create tables automatically */ @@ -35,7 +35,7 @@ if (!file_exists("./install.lock")) { `hash_steve` varchar(64) NOT NULL, `hash_alex` varchar(64) NOT NULL, `hash_cape` varchar(64) NOT NULL, - `last_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, + `last_modified` datetime NOT NULL ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15;";