1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

12.0.3 sql (#7018)

This commit is contained in:
欢乐马
2024-11-09 14:53:14 +08:00
committed by GitHub
parent 010f360cdf
commit 3235466eb3
2 changed files with 8 additions and 5 deletions

View File

@@ -43,14 +43,15 @@ CREATE TABLE IF NOT EXISTS `repo_metadata` (
`id` INT(11) NOT NULL AUTO_INCREMENT, `id` INT(11) NOT NULL AUTO_INCREMENT,
`repo_id` VARCHAR(36) NOT NULL, `repo_id` VARCHAR(36) NOT NULL,
`enabled` TINYINT(1) NOT NULL, `enabled` TINYINT(1) NOT NULL,
`face_recognition_enabled` TINYINT(1) NULL,
`last_face_cluster_time` DATETIME NULL,
`modified_time` DATETIME NOT NULL, `modified_time` DATETIME NOT NULL,
`created_time` DATETIME NOT NULL, `created_time` DATETIME NOT NULL,
`from_commit` varchar(40) NULL, `from_commit` varchar(40) NULL,
`to_commit` varchar(40) NULL, `to_commit` varchar(40) NULL,
`face_recognition_enabled` tinyint(1) DEFAULT NULL,
`last_face_cluster_time` datetime DEFAULT NULL,
UNIQUE KEY `key_repo_metadata_repo_id`(`repo_id`), UNIQUE KEY `key_repo_metadata_repo_id`(`repo_id`),
KEY `key_repo_metadata_enabled`(`enabled`), KEY `key_repo_metadata_enabled`(`enabled`),
KEY `key_repo_metadata_face_recognition_enabled`(`face_recognition_enabled`),
PRIMARY KEY (`id`) PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
@@ -90,5 +91,7 @@ CREATE TABLE IF NOT EXISTS `wiki_wiki2_publish` (
ALTER TABLE share_fileshare ADD COLUMN IF NOT EXISTS `user_scope` varchar(225) DEFAULT 'all_users'; ALTER TABLE share_fileshare ADD COLUMN IF NOT EXISTS `user_scope` varchar(225) DEFAULT 'all_users';
ALTER TABLE share_fileshare ADD COLUMN IF NOT EXISTS `authed_details` LONGTEXT DEFAULT NULL; ALTER TABLE share_fileshare ADD COLUMN IF NOT EXISTS `authed_details` LONGTEXT DEFAULT NULL;
ALTER TABLE share_fileshare ADD INDEX IF NOT EXISTS `idx_ctime` (`ctime`);
ALTER TABLE share_fileshare ADD INDEX IF NOT EXISTS `idx_view_cnt` (`view_cnt`);
ALTER TABLE profile_profile ADD COLUMN IF NOT EXISTS `is_manually_set_contact_email` tinyint(1) DEFAULT 0; ALTER TABLE profile_profile ADD COLUMN IF NOT EXISTS `is_manually_set_contact_email` tinyint(1) DEFAULT 0;

View File

@@ -955,7 +955,9 @@ CREATE TABLE `share_fileshare` (
KEY `share_fileshare_username_5cb6de75` (`username`), KEY `share_fileshare_username_5cb6de75` (`username`),
KEY `share_fileshare_repo_id_9b5ae27a` (`repo_id`), KEY `share_fileshare_repo_id_9b5ae27a` (`repo_id`),
KEY `share_fileshare_s_type_724eb6c1` (`s_type`), KEY `share_fileshare_s_type_724eb6c1` (`s_type`),
KEY `share_fileshare_permission_d12c353f` (`permission`) KEY `share_fileshare_permission_d12c353f` (`permission`),
KEY `idx_ctime` (`ctime`),
KEY `idx_view_cnt` (`view_cnt`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8; ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
/*!40101 SET character_set_client = @saved_cs_client */; /*!40101 SET character_set_client = @saved_cs_client */;
@@ -1534,8 +1536,6 @@ CREATE TABLE `repo_metadata` (
`created_time` DATETIME NOT NULL, `created_time` DATETIME NOT NULL,
`from_commit` varchar(40) NULL, `from_commit` varchar(40) NULL,
`to_commit` varchar(40) NULL, `to_commit` varchar(40) NULL,
`face_recognition_enabled` tinyint(1) DEFAULT NULL,
`last_face_cluster_time` datetime DEFAULT NULL,
UNIQUE KEY `key_repo_metadata_repo_id`(`repo_id`), UNIQUE KEY `key_repo_metadata_repo_id`(`repo_id`),
KEY `key_repo_metadata_enabled`(`enabled`), KEY `key_repo_metadata_enabled`(`enabled`),
KEY `key_repo_metadata_face_recognition_enabled`(`face_recognition_enabled`), KEY `key_repo_metadata_face_recognition_enabled`(`face_recognition_enabled`),