remove any agent belonging to a non-existent group

This commit is contained in:
fbsanchez 2021-07-01 16:11:09 +02:00
parent 85f5ec5fdd
commit 2a964b52f1
1 changed files with 2 additions and 0 deletions

View File

@ -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;