add databases changes for version 5.0.0

This commit is contained in:
Uwe Steinmann 2014-03-26 08:17:23 +01:00
parent 856920a20a
commit a0e8024c95
4 changed files with 20 additions and 1 deletions

View File

@ -65,6 +65,7 @@ CREATE TABLE `tblUsers` (
`loginfailures` tinyint(4) NOT NULL default '0',
`disabled` smallint(1) NOT NULL default '0',
`quota` bigint,
`homefolder` int(11) default '0',
PRIMARY KEY (`id`),
UNIQUE (`login`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
@ -711,5 +712,5 @@ CREATE TABLE `tblVersion` (
INSERT INTO tblUsers VALUES (1, 'admin', '21232f297a57a5a743894a0e4a801fc3', 'Administrator', 'address@server.com', '', '', '', 1, 0, '0000-00-00 00:00:00', 0, 0, 0);
INSERT INTO tblUsers VALUES (2, 'guest', NULL, 'Guest User', NULL, '', '', '', 2, 0, '0000-00-00 00:00:00', 0, 0, 0);
INSERT INTO tblFolders VALUES (1, 'DMS', 0, '', 'DMS root', UNIX_TIMESTAMP(), 1, 0, 2, 0);
INSERT INTO tblVersion VALUES (NOW(), 4, 3, 0);
INSERT INTO tblVersion VALUES (NOW(), 5, 0, 0);
INSERT INTO tblCategory VALUES (0, '');

View File

@ -62,6 +62,7 @@ CREATE TABLE `tblUsers` (
`loginfailures` INTEGER NOT NULL default '0',
`disabled` INTEGER NOT NULL default '0',
`quota` INTEGER,
`homefolder` INTEGER default '0',
UNIQUE (`login`)
);

View File

@ -0,0 +1,9 @@
BEGIN;
ALTER TABLE tblUsers ADD COLUMN `homefolder` INTEGER DEFAULT 0;
UPDATE tblVersion set major=5, minor=0, subminor=0;
COMMIT;

View File

@ -0,0 +1,8 @@
START TRANSACTION;
ALTER TABLE tblUsers ADD COLUMN `homefolder` INTEGER DEFAULT 0;
UPDATE tblVersion set major=5, minor=0, subminor=0;
COMMIT;