mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
do not set date fields on default value '0000-00-00 00:00:00'
This commit is contained in:
parent
0ff247d83e
commit
b5baf3eb49
|
@ -173,12 +173,12 @@ CREATE TABLE `tblUserPasswordHistory` (
|
|||
`id` int(11) NOT NULL auto_increment,
|
||||
`userID` int(11) NOT NULL default '0',
|
||||
`pwd` varchar(50) default NULL,
|
||||
`date` datetime NOT NULL default '0000-00-00 00:00:00',
|
||||
`date` datetime NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
CONSTRAINT `tblUserPasswordHistory_user` FOREIGN KEY (`userID`) REFERENCES `tblUsers` (`id`) ON DELETE CASCADE
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE tblUsers ADD COLUMN `pwdExpiration` datetime NOT NULL default '0000-00-00 00:00:00';
|
||||
ALTER TABLE tblUsers ADD COLUMN `pwdExpiration` datetime default NULL;
|
||||
|
||||
ALTER TABLE tblUsers ADD COLUMN `loginfailures` tinyint(4) NOT NULL default '0';
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user