salix/db/changes/225001/03-notification_ACL.sql

11 lines
377 B
SQL

INSERT INTO `util`.`notification` (`name`, `description`)
VALUES
('client-web-payment-confirm-lost', 'A client web payment has not confirmation');
INSERT INTO `util`.`notificationAcl` (`notificationFk`, `roleFk`)
SELECT n.id, r.id
FROM util.notification n
JOIN account.role r
WHERE n.name='client-web-payment-confirm-lost'
AND r.name = 'financial';