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

rm ADD INDEX IF NOT EXISTS in sql (#7543)

This commit is contained in:
欢乐马 2025-03-03 15:59:30 +08:00 committed by GitHub
parent 43c28a8466
commit 8ae5eedf03
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 7 deletions

View File

@ -18,5 +18,5 @@ CREATE TABLE IF NOT EXISTS OrgUploadRateLimit (
UNIQUE INDEX(org_id)
) ENGINE=INNODB;
ALTER TABLE RepoInfo ADD COLUMN IF NOT EXISTS type varchar(10);
CREATE INDEX IF NOT EXISTS RepoInfoTypeIndex on RepoInfo (type);
ALTER TABLE RepoInfo ADD COLUMN type varchar(10);
CREATE INDEX RepoInfoTypeIndex on RepoInfo (type);

View File

@ -89,9 +89,9 @@ CREATE TABLE IF NOT EXISTS `wiki_wiki2_publish` (
KEY `ix_wiki2_publish_repo_id` (`repo_id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci;
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 share_fileshare ADD COLUMN `user_scope` varchar(225) DEFAULT 'all_users';
ALTER TABLE share_fileshare ADD COLUMN `authed_details` LONGTEXT DEFAULT NULL;
ALTER TABLE share_fileshare ADD INDEX `idx_ctime` (`ctime`);
ALTER TABLE share_fileshare ADD INDEX `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 `is_manually_set_contact_email` tinyint(1) DEFAULT 0;