16 lines
510 B
SQL
16 lines
510 B
SQL
INSERT INTO util.notification ( name, description)
|
|
SELECT 'invoice-ticket-closure',
|
|
'Tickets not invoiced during the nightly closure ticket process';
|
|
|
|
SET @notificationFk =LAST_INSERT_ID();
|
|
|
|
INSERT IGNORE INTO util.notificationAcl (notificationFk, roleFk)
|
|
SELECT @notificationFk,id
|
|
FROM account.role
|
|
WHERE name ='administrative';
|
|
|
|
INSERT IGNORE INTO util.notificationSubscription (notificationFk, userFk)
|
|
SELECT @notificationFk, id
|
|
FROM account.`user`
|
|
WHERE `name` = 'admon';
|