Merge branch 'ent-7772-agentes-con-id-grupo-inexistente-entornos-metaconsola' into 'develop'

remove any agent belonging to a non-existent group

See merge request artica/pandorafms!4256
This commit is contained in:
vgilc 2021-07-06 09:29:14 +00:00
commit 04c402bc03
1 changed files with 2 additions and 0 deletions

View File

@ -23,4 +23,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;