Skip to content

Commit

Permalink
12.0.3 sql (#7018)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkywalkerSpace authored Nov 9, 2024
1 parent 010f360 commit 3235466
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 5 additions & 2 deletions scripts/upgrade/sql/12.0.0/mysql/seahub.sql
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ CREATE TABLE IF NOT EXISTS `repo_metadata` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`repo_id` VARCHAR(36) NOT NULL,
`enabled` TINYINT(1) NOT NULL,
`face_recognition_enabled` TINYINT(1) NULL,
`last_face_cluster_time` DATETIME NULL,
`modified_time` DATETIME NOT NULL,
`created_time` DATETIME NOT NULL,
`from_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`),
KEY `key_repo_metadata_enabled`(`enabled`),
KEY `key_repo_metadata_face_recognition_enabled`(`face_recognition_enabled`),
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;

Expand Down Expand Up @@ -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 `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;
6 changes: 3 additions & 3 deletions sql/mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -955,7 +955,9 @@ CREATE TABLE `share_fileshare` (
KEY `share_fileshare_username_5cb6de75` (`username`),
KEY `share_fileshare_repo_id_9b5ae27a` (`repo_id`),
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;
/*!40101 SET character_set_client = @saved_cs_client */;

Expand Down Expand Up @@ -1534,8 +1536,6 @@ CREATE TABLE `repo_metadata` (
`created_time` DATETIME NOT NULL,
`from_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`),
KEY `key_repo_metadata_enabled`(`enabled`),
KEY `key_repo_metadata_face_recognition_enabled`(`face_recognition_enabled`),
Expand Down

0 comments on commit 3235466

Please sign in to comment.