1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-10-27 19:29:58 +00:00

Add missing seafile tables (#778)

* Add missing seafile tables

* Add default value for is_department_owner

---------

Co-authored-by: Heran Yang <heran.yang@seafile.com>
This commit is contained in:
feiniks
2025-10-15 14:46:28 +08:00
committed by GitHub
parent 9b81f1ff3e
commit 0fc11a5b51
2 changed files with 59 additions and 1 deletions

View File

@@ -12,10 +12,13 @@ CREATE TABLE IF NOT EXISTS EmailUser (
passwd VARCHAR(256),
is_staff BOOL NOT NULL,
is_active BOOL NOT NULL,
is_department_owner BOOL NOT NULL DEFAULT 0,
ctime BIGINT,
reference_id VARCHAR(255),
UNIQUE INDEX (email),
UNIQUE INDEX (reference_id)
UNIQUE INDEX (reference_id),
INDEX (is_active),
INDEX (is_department_owner)
) ENGINE=INNODB;
CREATE TABLE IF NOT EXISTS `Group` (
@@ -102,3 +105,10 @@ CREATE TABLE IF NOT EXISTS UserRole (
is_manual_set INTEGER DEFAULT 0,
UNIQUE INDEX (email)
) ENGINE=INNODB;
CREATE TABLE IF NOT EXISTS OrgFileExtWhiteList (
id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT,
org_id INTEGER,
white_list TEXT,
UNIQUE INDEX (org_id)
) ENGINE=INNODB;