From 872ab09c4de7ddbcb22baff268891e2b4f35ce3c Mon Sep 17 00:00:00 2001 From: skywalker Date: Tue, 20 Apr 2021 10:22:15 +0800 Subject: [PATCH] fix sql 8.0 upgrade --- scripts/upgrade/sql/8.0.0/mysql/seafevents.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/upgrade/sql/8.0.0/mysql/seafevents.sql b/scripts/upgrade/sql/8.0.0/mysql/seafevents.sql index 93a851b..5761139 100644 --- a/scripts/upgrade/sql/8.0.0/mysql/seafevents.sql +++ b/scripts/upgrade/sql/8.0.0/mysql/seafevents.sql @@ -1,4 +1,4 @@ -ALTER TABLE `VirusFile` ADD COLUMN IF NOT EXISTS `has_ignored` TINYINT(1) NOT NULL DEFAULT 0; +ALTER TABLE `VirusFile` ADD COLUMN `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`); +ALTER TABLE `VirusFile` ADD INDEX `has_deleted` (`has_deleted`); +ALTER TABLE `VirusFile` ADD INDEX `has_ignored` (`has_ignored`);