11 lines
497 B
SQL
11 lines
497 B
SQL
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";
|