1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-07 02:10:05 +00:00

sql external_department

This commit is contained in:
skywalker
2021-04-19 14:24:34 +08:00
parent 74e4c3cad6
commit e0a493f5b3
2 changed files with 13 additions and 0 deletions

View File

@@ -45,3 +45,13 @@ CREATE TABLE IF NOT EXISTS `repo_auto_delete` (
PRIMARY KEY (`id`),
UNIQUE KEY `repo_id` (`repo_id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
CREATE TABLE IF NOT EXISTS `external_department` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`group_id` int(11) NOT NULL,
`provider` varchar(32) NOT NULL,
`outer_id` bigint(20) NOT NULL,
PRIMARY KEY (`id`),
UNIQUE KEY `group_id` (`group_id`),
UNIQUE KEY `external_department_provider_outer_id_8dns6vkw_uniq` (`provider`,`outer_id`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;