From 0337afcdaf079577dc6686b38fdeb1844d3e6dde Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Thu, 7 Dec 2023 10:21:57 +0100 Subject: [PATCH] #12138 Fix SQL code --- pandora_console/extras/mr/67.sql | 2 +- pandora_console/pandoradb.sql | 10 ---------- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/pandora_console/extras/mr/67.sql b/pandora_console/extras/mr/67.sql index fe022e45e3..eecf9220d0 100644 --- a/pandora_console/extras/mr/67.sql +++ b/pandora_console/extras/mr/67.sql @@ -11,7 +11,7 @@ UPDATE talert_actions SET field2='[PANDORA] Alert FIRED on _agent_ / _module_ / _timestamp_ / _data_' WHERE id=11; -- Delete table tagent_access -DROP TABLE tagent_access; +DROP TABLE IF EXISTS tagent_access; ALTER TABLE `tevent_rule` DROP COLUMN `user_comment`; ALTER TABLE `tevent_rule` DROP COLUMN `operator_user_comment`; diff --git a/pandora_console/pandoradb.sql b/pandora_console/pandoradb.sql index fca9535e63..dd9e4c3ab3 100644 --- a/pandora_console/pandoradb.sql +++ b/pandora_console/pandoradb.sql @@ -290,16 +290,6 @@ CREATE TABLE IF NOT EXISTS `tagente_modulo` ( ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; -- snmp_oid is also used for WMI query --- ----------------------------------------------------- --- Table `tagent_access` --- ----------------------------------------------------- --- CREATE TABLE IF NOT EXISTS `tagent_access` ( --- `id_agent` INT UNSIGNED NOT NULL DEFAULT 0, --- `utimestamp` BIGINT NOT NULL DEFAULT 0, --- KEY `agent_index` (`id_agent`), --- KEY `idx_utimestamp` USING BTREE (`utimestamp`) --- ) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4; - -- ----------------------------------------------------- -- Table `talert_snmp` -- -----------------------------------------------------