refs #5858 feat: comments
gitea/salix/pipeline/pr-dev There was a failure building this commit Details

This commit is contained in:
Javier Segarra 2024-02-12 13:17:47 +01:00
parent e8c783ca68
commit 05d685c86b
4 changed files with 4 additions and 47 deletions

View File

@ -2816,8 +2816,8 @@ INSERT INTO `util`.`notification` (`id`, `name`, `description`)
(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'),
(5, 'modified-entry', 'An entry has been modified'),
(6, 'book-entry-deleted', 'accounting entries deleted'),
(7, 'zone-included','An email to notify zoneCollisions');
(6, 'book-entry-deleted', 'accounting entries deleted');
INSERT INTO `util`.`notificationAcl` (`notificationFk`, `roleFk`)
VALUES
(1, 9),
@ -2826,8 +2826,7 @@ INSERT INTO `util`.`notificationAcl` (`notificationFk`, `roleFk`)
(3, 9),
(4, 1),
(5, 9),
(6, 9),
(7, 1);
(6, 9);
INSERT INTO `util`.`notificationQueue` (`id`, `notificationFk`, `params`, `authorFk`, `status`, `created`)
VALUES
@ -2844,8 +2843,7 @@ INSERT INTO `util`.`notificationSubscription` (`notificationFk`, `userFk`)
(2, 1109),
(1, 9),
(1, 3),
(6, 9),
(7, 9);
(6, 9);
INSERT INTO `vn`.`routeConfig` (`id`, `defaultWorkCenterFk`)
@ -3064,6 +3062,3 @@ INSERT INTO `vn`.`clientSms` (`id`, `clientFk`, `smsFk`, `ticketFk`)
(4, 1103, 4, 32),
(13, 1101, 1, NULL),
(14, 1101, 4, 27);
UPDATE salix.ACL
SET principalId='employee' WHERE model ="Notification";

View File

@ -1,18 +0,0 @@
-- 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;

View File

@ -1,10 +0,0 @@
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";

View File

@ -1,10 +0,0 @@
-- 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";