parent
242d675d28
commit
24984e8aca
|
@ -2816,8 +2816,8 @@ INSERT INTO `util`.`notification` (`id`, `name`, `description`)
|
||||||
(3, 'not-main-printer-configured', 'A printer distinct than main has been configured'),
|
(3, 'not-main-printer-configured', 'A printer distinct than main has been configured'),
|
||||||
(4, 'supplier-pay-method-update', 'A supplier pay method has been updated'),
|
(4, 'supplier-pay-method-update', 'A supplier pay method has been updated'),
|
||||||
(5, 'modified-entry', 'An entry has been modified'),
|
(5, 'modified-entry', 'An entry has been modified'),
|
||||||
(6, 'book-entry-deleted', 'accounting entries deleted');
|
(6, 'book-entry-deleted', 'accounting entries deleted'),
|
||||||
|
(7, 'zone-included','An email to notify zoneCollisions');
|
||||||
INSERT INTO `util`.`notificationAcl` (`notificationFk`, `roleFk`)
|
INSERT INTO `util`.`notificationAcl` (`notificationFk`, `roleFk`)
|
||||||
VALUES
|
VALUES
|
||||||
(1, 9),
|
(1, 9),
|
||||||
|
@ -2826,7 +2826,8 @@ INSERT INTO `util`.`notificationAcl` (`notificationFk`, `roleFk`)
|
||||||
(3, 9),
|
(3, 9),
|
||||||
(4, 1),
|
(4, 1),
|
||||||
(5, 9),
|
(5, 9),
|
||||||
(6, 9);
|
(6, 9),
|
||||||
|
(7, 1);
|
||||||
|
|
||||||
INSERT INTO `util`.`notificationQueue` (`id`, `notificationFk`, `params`, `authorFk`, `status`, `created`)
|
INSERT INTO `util`.`notificationQueue` (`id`, `notificationFk`, `params`, `authorFk`, `status`, `created`)
|
||||||
VALUES
|
VALUES
|
||||||
|
@ -2843,7 +2844,8 @@ INSERT INTO `util`.`notificationSubscription` (`notificationFk`, `userFk`)
|
||||||
(2, 1109),
|
(2, 1109),
|
||||||
(1, 9),
|
(1, 9),
|
||||||
(1, 3),
|
(1, 3),
|
||||||
(6, 9);
|
(6, 9),
|
||||||
|
(7, 9);
|
||||||
|
|
||||||
|
|
||||||
INSERT INTO `vn`.`routeConfig` (`id`, `defaultWorkCenterFk`)
|
INSERT INTO `vn`.`routeConfig` (`id`, `defaultWorkCenterFk`)
|
||||||
|
@ -3062,3 +3064,6 @@ INSERT INTO `vn`.`clientSms` (`id`, `clientFk`, `smsFk`, `ticketFk`)
|
||||||
(4, 1103, 4, 32),
|
(4, 1103, 4, 32),
|
||||||
(13, 1101, 1, NULL),
|
(13, 1101, 1, NULL),
|
||||||
(14, 1101, 4, 27);
|
(14, 1101, 4, 27);
|
||||||
|
|
||||||
|
UPDATE salix.ACL
|
||||||
|
SET principalId='employee' WHERE model ="Notification";
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
|
||||||
|
-- UPDATE salix.ACL
|
||||||
|
-- SET principalId='employee' WHERE model ="Notification";
|
||||||
|
|
||||||
|
-- INSERT INTO util.notification (name,description)
|
||||||
|
-- VALUES ('zone-included','An email to notify zoneCollisions');
|
||||||
|
|
||||||
|
-- INSERT INTO util.notificationSubscription (notificationFk,userFk)
|
||||||
|
-- SELECT
|
||||||
|
-- (SELECT id FROM util.notification WHERE name= "zone-included") AS notificationFk,
|
||||||
|
-- (SELECT account.myUser_getId() ) AS userFk;
|
||||||
|
|
||||||
|
|
||||||
|
-- INSERT INTO util.notificationAcl (notificationFk, roleFk)
|
||||||
|
-- SELECT
|
||||||
|
-- (SELECT id FROM util.notification WHERE name = 'zone-included') AS notificationFk,
|
||||||
|
-- (SELECT id FROM account.role WHERE name = 'system') AS roleFk;
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
INSERT INTO util.notification (id, name,description)
|
||||||
|
VALUES (
|
||||||
|
(SELECT MAX(id)+1 from util.notification n) , 'zone-included','An email to notify zoneCollisions');
|
||||||
|
|
||||||
|
INSERT INTO util.notificationSubscription (notificationFk,userFk)
|
||||||
|
SELECT id, account.myUser_getId() FROM util.notification WHERE name= "zone-included";
|
||||||
|
|
||||||
|
|
||||||
|
INSERT INTO util.notificationAcl (notificationFk,roleFk)
|
||||||
|
SELECT id, (SELECT id from `account`.`role` where name = "system") FROM util.notification WHERE name= "zone-included";
|
|
@ -0,0 +1,10 @@
|
||||||
|
-- INSERT INTO util.notification (id, name,description)
|
||||||
|
-- VALUES (
|
||||||
|
-- (SELECT MAX(id)+1 from util.notification n) , 'zone-included','An email to notify zoneCollisions');
|
||||||
|
|
||||||
|
-- INSERT INTO util.notificationSubscription (notificationFk,userFk)
|
||||||
|
-- SELECT id, account.myUser_getId() FROM util.notification WHERE name= "zone-included";
|
||||||
|
|
||||||
|
|
||||||
|
-- INSERT INTO util.notificationAcl (notificationFk,roleFk)
|
||||||
|
-- SELECT id, (SELECT id from `account`.`role` where name = "system") FROM util.notification WHERE name= "zone-included";
|
Loading…
Reference in New Issue