mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-07 02:10:05 +00:00
fix 8.0 sql (#436)
This commit is contained in:
4
scripts/upgrade/sql/8.0.0/mysql/seafevents.sql
Normal file
4
scripts/upgrade/sql/8.0.0/mysql/seafevents.sql
Normal file
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE `VirusFile` ADD COLUMN IF NOT EXISTS `has_ignored` TINYINT(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `VirusFile` CHANGE `has_handle` `has_deleted` TINYINT(1);
|
||||
ALTER TABLE `VirusFile` ADD INDEX IF NOT EXISTS `has_deleted` (`has_deleted`);
|
||||
ALTER TABLE `VirusFile` ADD INDEX IF NOT EXISTS `has_ignored` (`has_ignored`);
|
@@ -37,8 +37,3 @@ CREATE TABLE IF NOT EXISTS `ocm_share_received` (
|
||||
KEY `ocm_share_received_repo_id_9e77a1b9` (`repo_id`),
|
||||
KEY `ocm_share_received_provider_id_60c873e0` (`provider_id`)
|
||||
) ENGINE = InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `VirusFile` ADD COLUMN IF NOT EXISTS `has_ignored` TINYINT(1) NOT NULL DEFAULT 0;
|
||||
ALTER TABLE `VirusFile` CHANGE `has_handle` `has_deleted` TINYINT(1);
|
||||
ALTER TABLE `VirusFile` ADD INDEX IF NOT EXISTS `has_deleted` (`has_deleted`);
|
||||
ALTER TABLE `VirusFile` ADD INDEX IF NOT EXISTS `has_ignored` (`has_ignored`);
|
||||
|
Reference in New Issue
Block a user