From 395cd3af3b0c9f3655983ed10b83d5c15950c43c Mon Sep 17 00:00:00 2001 From: printempw Date: Wed, 3 Feb 2016 13:51:24 +0800 Subject: [PATCH] update install.php to fit new table column `last_modified` --- admin/install.php | 16 ++++++++-------- get.php | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/admin/install.php b/admin/install.php index 96edc358..5d5375f1 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-03 00:23:08 + * @Last Modified time: 2016-02-03 13:50:17 * * Create tables automatically */ @@ -35,8 +35,8 @@ if (!file_exists("./install.lock")) { `preference` varchar(10) NOT NULL, `skin_hash` varchar(64) NOT NULL, `cape_hash` varchar(64) NOT NULL, - PRIMARY KEY (`uid`), - UNIQUE KEY `uid` (`uid`) + `last_modified` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP + PRIMARY KEY (`uid`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15;"; if(!$conn->query($sql)) { @@ -53,11 +53,11 @@ if (!file_exists("./install.lock")) { echo "
-+-----------------------------------------------------------------------------------+
-|  uid  |  username  |  password  |  ip  |  preference  |  skin_hash  |  cape_hash  |
-+-----------------------------------------------------------------------------------+
-|   1   |    admin   |   123456   |   *  |    default   |      *      |      *      |
-+-----------------------------------------------------------------------------------+
++-----------------------------------------------------------------------------------+-----------------+
+|  uid  |  username  |  password  |  ip  |  preference  |  skin_hash  |  cape_hash  |  last_modofied  |
++-----------------------------------------------------------------------------------+-----------------+
+|   1   |    admin   |   123456   |   *  |    default   |      *      |      *      |        *        |
++-----------------------------------------------------------------------------------+-----------------+
 
"; diff --git a/get.php b/get.php index be389294..36bb8064 100644 --- a/get.php +++ b/get.php @@ -3,7 +3,7 @@ * @Author: prpr * @Date: 2016-02-02 20:56:42 * @Last Modified by: prpr - * @Last Modified time: 2016-02-03 13:26:30 + * @Last Modified time: 2016-02-03 13:37:33 */ $dir = dirname(__FILE__);