1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-04-27 19:05:16 +00:00

13.0 repo_metadata sql (#7652)

This commit is contained in:
欢乐马 2025-03-20 18:36:34 +08:00 committed by GitHub
parent 7365db5295
commit 592354b3cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 11 additions and 0 deletions

View File

@ -44,3 +44,9 @@ CREATE TABLE IF NOT EXISTS `org_last_active_time` (
ALTER TABLE `sdoc_notification` ADD INDEX `idx_user_seen` (`username`, `seen`);
ALTER TABLE organizations_orgsettings ADD COLUMN `is_active` tinyint(1) NOT NULL DEFAULT 1;
ALTER TABLE repo_metadata ADD COLUMN tags_enabled tinyint(1) NULL;
ALTER TABLE repo_metadata ADD COLUMN tags_lang varchar(36) NULL;
ALTER TABLE repo_metadata ADD COLUMN details_settings longtext NULL;
ALTER TABLE repo_metadata ADD COLUMN ocr_enabled tinyint(1) NULL;
ALTER TABLE `repo_metadata` ADD KEY `key_last_face_cluster_time_face_recognition_enabled`(`face_recognition_enabled`, `last_face_cluster_time`);

View File

@ -1538,9 +1538,14 @@ CREATE TABLE `repo_metadata` (
`created_time` DATETIME NOT NULL,
`from_commit` varchar(40) NULL,
`to_commit` varchar(40) NULL,
`tags_enabled` tinyint(1) DEFAULT NULL,
`tags_lang` varchar(36) DEFAULT NULL,
`details_settings` longtext DEFAULT NULL,
`ocr_enabled` tinyint(1) DEFAULT NULL,
UNIQUE KEY `key_repo_metadata_repo_id`(`repo_id`),
KEY `key_repo_metadata_enabled`(`enabled`),
KEY `key_repo_metadata_face_recognition_enabled`(`face_recognition_enabled`),
KEY `key_last_face_cluster_time_face_recognition_enabled` (`face_recognition_enabled`,`last_face_cluster_time`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;