fixed 'Invalid default value for last_modified
' because specifying CURRENT_TIMESTAMP for datetime field
This commit is contained in:
parent
512e0ad7b8
commit
f6eaf2e09a
@ -3,7 +3,7 @@
|
|||||||
* @Author: printempw
|
* @Author: printempw
|
||||||
* @Date: 2016-01-16 23:01:33
|
* @Date: 2016-01-16 23:01:33
|
||||||
* @Last Modified by: prpr
|
* @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
|
* Create tables automatically
|
||||||
*/
|
*/
|
||||||
@ -35,7 +35,7 @@ if (!file_exists("./install.lock")) {
|
|||||||
`hash_steve` varchar(64) NOT NULL,
|
`hash_steve` varchar(64) NOT NULL,
|
||||||
`hash_alex` varchar(64) NOT NULL,
|
`hash_alex` varchar(64) NOT NULL,
|
||||||
`hash_cape` 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`)
|
PRIMARY KEY (`uid`)
|
||||||
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15;";
|
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=15;";
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user