8093-devToTest_2442_3 #3100
|
@ -20,12 +20,16 @@ BEGIN
|
||||||
WHERE b.id = vBusinessFk;
|
WHERE b.id = vBusinessFk;
|
||||||
|
|
||||||
IF vNewQueue IS NULL THEN
|
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
|
ELSE
|
||||||
IF vPrevQueue IS NULL THEN
|
IF vPrevQueue IS NULL THEN
|
||||||
INSERT INTO pbx.queueMember (queue, extension) VALUES (vNewQueue, vExtension);
|
INSERT INTO pbx.queueMember (queue, extension)
|
||||||
|
VALUES (vNewQueue, vExtension);
|
||||||
ELSE
|
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 IF;
|
END IF;
|
||||||
END$$
|
END$$
|
||||||
|
|
Loading…
Reference in New Issue