From b10e9cfc677f85038df213b1873a5c2038c07a3e Mon Sep 17 00:00:00 2001 From: daniel Date: Thu, 4 Jan 2018 13:10:25 +0100 Subject: [PATCH] fixed errors in favourite consola visual --- pandora_console/extras/mr/11.sql | 2 ++ pandora_console/extras/pandoradb_migrate_6.0_to_7.0.mysql.sql | 2 ++ 2 files changed, 4 insertions(+) diff --git a/pandora_console/extras/mr/11.sql b/pandora_console/extras/mr/11.sql index 4c7913b9f4..a49120cf85 100644 --- a/pandora_console/extras/mr/11.sql +++ b/pandora_console/extras/mr/11.sql @@ -2,6 +2,8 @@ START TRANSACTION; ALTER TABLE `tlayout` ADD `is_favourite` int(1) NOT NULL DEFAULT 0; +UPDATE tlayout SET is_favourite = 1 WHERE name REGEXP '^(' OR name REGEXP '^\\['; + 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; 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 4313caa627..7849faaa65 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 @@ -1236,6 +1236,8 @@ UPDATE tagente SET tagente.alias = tagente.nombre; ALTER TABLE tlayout ADD `background_color` varchar(50) NOT NULL default '#FFF'; ALTER TABLE tlayout ADD `is_favourite` int(1) NOT NULL DEFAULT 0; +UPDATE tlayout SET is_favourite = 1 WHERE name REGEXP '^(' OR name REGEXP '^\\['; + -- --------------------------------------------------------------------- -- Table `tlayout_data` -- ---------------------------------------------------------------------