do not set date fields on default value '0000-00-00 00:00:00'

This commit is contained in:
Uwe Steinmann 2021-03-23 17:40:37 +01:00
parent 0ff247d83e
commit b5baf3eb49

View File

@ -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';