salix/db/versions/10881-greenHydrangea/01-notification.vn.sql

13 lines
496 B
SQL

SET @MaxId = (SELECT MAX(id)+1 from util.notification n);
INSERT IGNORE INTO util.notification (`id`, `name`,`description`)
VALUES
(@MaxId, 'zone-included','An email to notify zoneCollisions');
INSERT IGNORE INTO util.notificationSubscription (notificationFk,userFk)
VALUES(
@MaxId, 100);
INSERT IGNORE INTO util.notificationAcl (notificationFk,roleFk)
SELECT @MaxId, (SELECT id from `account`.`role` where name = "system") FROM util.notification WHERE name= "zone-included";