Merge pull request 'hotfix_clientsDisable' (!2240) from hotfix_clientsDisable into master
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
Reviewed-on: #2240 Reviewed-by: Javi Gallego <jgallego@verdnatura.es>
This commit is contained in:
commit
cd7ed5f17b
|
@ -7,9 +7,8 @@ CREATE OR REPLACE DEFINER=`root`@`localhost` EVENT `vn`.`clientsDisable`
|
||||||
DO BEGIN
|
DO BEGIN
|
||||||
UPDATE account.user u
|
UPDATE account.user u
|
||||||
JOIN client c ON c.id = u.id
|
JOIN client c ON c.id = u.id
|
||||||
JOIN clientType ct ON ct.id = c.typeFk
|
|
||||||
SET u.active = FALSE
|
SET u.active = FALSE
|
||||||
WHERE ct.code = 'normal'
|
WHERE c.typeFk = 'normal'
|
||||||
AND u.id NOT IN (
|
AND u.id NOT IN (
|
||||||
SELECT DISTINCT c.id
|
SELECT DISTINCT c.id
|
||||||
FROM client c
|
FROM client c
|
||||||
|
|
Loading…
Reference in New Issue