2024-03-18 17:15:05 +00:00
|
|
|
INSERT INTO util.notification ( name, description)
|
|
|
|
SELECT 'invoice-ticket-closure',
|
2024-03-13 11:18:43 +00:00
|
|
|
'Tickets not invoiced during the nightly closure ticket process'
|
|
|
|
FROM util.notification;
|
2024-03-18 17:15:05 +00:00
|
|
|
|
|
|
|
SET @notificationFk =LAST_INSERT_ID();
|
2024-03-13 17:51:11 +00:00
|
|
|
|
|
|
|
INSERT IGNORE INTO util.notificationAcl (notificationFk, roleFk)
|
2024-04-04 15:50:39 +00:00
|
|
|
SELECT @notificationFk,id
|
|
|
|
FROM account.role
|
|
|
|
WHERE name ='administrative';
|
|
|
|
|
2024-03-13 17:51:11 +00:00
|
|
|
INSERT IGNORE INTO util.notificationSubscription (notificationFk, userFk)
|
2024-04-04 15:50:39 +00:00
|
|
|
SELECT @notificationFk, id
|
|
|
|
FROM account.`user`
|
|
|
|
WHERE `name` = 'admon';
|