2024-03-04 10:57:10 +00:00
|
|
|
SET @MaxId = (SELECT MAX(id)+1 from util.notification n);
|
|
|
|
INSERT IGNORE INTO util.notification (`id`, `name`,`description`)
|
|
|
|
VALUES
|
2024-02-29 12:49:50 +00:00
|
|
|
(@MaxId, 'zone-included','An email to notify zoneCollisions');
|
|
|
|
|
2024-03-04 10:57:10 +00:00
|
|
|
INSERT IGNORE INTO util.notificationSubscription (notificationFk,userFk)
|
2024-02-29 12:49:50 +00:00
|
|
|
VALUES(
|
2024-03-06 10:41:48 +00:00
|
|
|
@MaxId, (SELECT id from `account`.`user` where name = "system"));
|
2024-02-29 12:49:50 +00:00
|
|
|
|
|
|
|
|
2024-03-04 10:57:10 +00:00
|
|
|
INSERT IGNORE INTO util.notificationAcl (notificationFk,roleFk)
|
2024-02-29 12:49:50 +00:00
|
|
|
SELECT @MaxId, (SELECT id from `account`.`role` where name = "system") FROM util.notification WHERE name= "zone-included";
|