This commit is contained in:
parent
02e837ebb6
commit
16b059a14a
|
@ -20,12 +20,16 @@ BEGIN
|
|||
WHERE b.id = vBusinessFk;
|
||||
|
||||
IF vNewQueue IS NULL THEN
|
||||
DELETE FROM pbx.queueMember WHERE extension = vExtension COLLATE utf8_general_ci;
|
||||
DELETE FROM pbx.queueMember
|
||||
WHERE extension = vExtension COLLATE utf8_general_ci;
|
||||
ELSE
|
||||
IF vPrevQueue IS NULL THEN
|
||||
INSERT INTO pbx.queueMember (queue, extension) VALUES (vNewQueue, vExtension);
|
||||
INSERT INTO pbx.queueMember (queue, extension)
|
||||
VALUES (vNewQueue, vExtension);
|
||||
ELSE
|
||||
UPDATE pbx.queueMember SET queue = vNewQueue WHERE extension = vExtension COLLATE utf8_general_ci;
|
||||
UPDATE pbx.queueMember
|
||||
SET queue = vNewQueue
|
||||
WHERE extension = vExtension COLLATE utf8_general_ci;
|
||||
END IF;
|
||||
END IF;
|
||||
END$$
|
||||
|
|
Loading…
Reference in New Issue