From 410ecab2114bc25fd47327a980ae6549e1609e58 Mon Sep 17 00:00:00 2001 From: daniel Date: Tue, 2 Jan 2018 14:49:42 +0100 Subject: [PATCH] fixed error in bbdd tsnmp_filter --- .../extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql index cc9e84b4c4..0f8803f5f3 100644 --- a/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql +++ b/pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql @@ -1470,3 +1470,9 @@ INSERT INTO ttipo_modulo VALUES (25,'web_analysis', 8, 'Web analysis data', 'mod -- Table `tdashboard` -- --------------------------------------------------------------------- ALTER TABLE `tdashboard` ADD COLUMN `cells_slideshow` TINYINT(1) NOT NULL default 0; + +-- --------------------------------------------------------------------- +-- Table `tsnmp_filter` +-- --------------------------------------------------------------------- +SELECT max(unified_filters_id) INTO @max FROM tsnmp_filter; +UPDATE tsnmp_filter tsf,(SELECT @max:= @max) m SET tsf.unified_filters_id = @max:= @max + 1 where tsf.unified_filters_id=0;