From 2a964b52f16f00f0824d94e411654594abb597e3 Mon Sep 17 00:00:00 2001 From: fbsanchez Date: Thu, 1 Jul 2021 16:11:09 +0200 Subject: [PATCH] remove any agent belonging to a non-existent group --- pandora_console/extras/mr/48.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pandora_console/extras/mr/48.sql b/pandora_console/extras/mr/48.sql index 52c22ff932..23bef60d4d 100644 --- a/pandora_console/extras/mr/48.sql +++ b/pandora_console/extras/mr/48.sql @@ -13,4 +13,6 @@ UPDATE `tuser_task_scheduled` SET ALTER TABLE `tlayout` ADD COLUMN `auto_adjust` INTEGER UNSIGNED NOT NULL default 0; +DELETE ta FROM `tagente` ta LEFT JOIN `tgrupo` tg on ta.`id_grupo` = tg.`id_grupo` WHERE tg.`id_grupo` IS NULL; + COMMIT;