mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
add databases changes for version 5.0.0
This commit is contained in:
parent
856920a20a
commit
a0e8024c95
|
@ -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, '');
|
||||
|
|
|
@ -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`)
|
||||
);
|
||||
|
||||
|
|
9
install/update-5.0.0/update-sqlite3.sql
Normal file
9
install/update-5.0.0/update-sqlite3.sql
Normal 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;
|
||||
|
||||
|
8
install/update-5.0.0/update.sql
Normal file
8
install/update-5.0.0/update.sql
Normal 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;
|
||||
|
Loading…
Reference in New Issue
Block a user