add new field disabledUntil in tblUsers

This commit is contained in:
Uwe Steinmann 2020-05-19 16:54:35 +02:00
parent d578efad89
commit 4e20bc29ad
6 changed files with 8 additions and 0 deletions

View File

@ -81,6 +81,7 @@ CREATE TABLE `tblUsers` (
`pwdExpiration` datetime DEFAULT NULL,
`loginfailures` tinyint(4) NOT NULL DEFAULT '0',
`disabled` smallint(1) NOT NULL DEFAULT '0',
`disabledUntil` datetime DEFAULT NULL,
`quota` bigint(20) DEFAULT NULL,
`homefolder` int(11) DEFAULT NULL,
PRIMARY KEY (`id`),

View File

@ -76,6 +76,7 @@ CREATE TABLE "tblUsers" (
"pwdExpiration" TIMESTAMP default NULL,
"loginfailures" INTEGER NOT NULL default '0',
"disabled" INTEGER NOT NULL default '0',
"disabledUntil" TIMESTAMP default NULL
"quota" BIGINT,
"homefolder" INTEGER default NULL,
UNIQUE ("login")

View File

@ -77,6 +77,7 @@ CREATE TABLE `tblUsers` (
`pwdExpiration` TEXT default NULL,
`loginfailures` INTEGER NOT NULL default '0',
`disabled` INTEGER NOT NULL default '0',
`disabledUntil` TEXT default NULL,
`quota` INTEGER,
`homefolder` INTEGER default NULL REFERENCES `tblFolders` (`id`),
UNIQUE (`login`)

View File

@ -8,6 +8,8 @@ ALTER TABLE "tblUserPasswordRequest" ALTER COLUMN "hash" varchar(255) DEFAULT NU
ALTER TABLE "tblUsers" ADD COLUMN "webauthn" TYPE text DEFAULT NULL;
ALTER TABLE "tblUsers" ADD COLUMN "disabledUntil" TYPE TIMESTAMP DEFAULT NULL;
CREATE TABLE "tblAttributeDefinitionGroups" (
"id" SERIAL UNIQUE,
"name" varchar(100) default NULL,

View File

@ -16,6 +16,7 @@ CREATE TABLE `new_tblUsers` (
`pwdExpiration` TEXT default NULL,
`loginfailures` INTEGER NOT NULL default '0',
`disabled` INTEGER NOT NULL default '0',
`disabledUntil` TEXT default NULL,
`quota` INTEGER,
`homefolder` INTEGER default NULL REFERENCES `tblFolders` (`id`),
UNIQUE (`login`)

View File

@ -8,6 +8,8 @@ ALTER TABLE `tblUserPasswordRequest` CHANGE `hash` `hash` varchar(255) DEFAULT N
ALTER TABLE `tblUsers` ADD COLUMN `webauthn` text DEFAULT NULL AFTER `pwd`;
ALTER TABLE `tblUsers` ADD COLUMN `disabledUntil` datetime DEFAULT NULL AFTER `disabled`;
CREATE TABLE `tblAttributeDefinitionGroups` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(100) DEFAULT NULL,