refs 5858 feat: sql files
gitea/salix/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Javier Segarra 2024-02-29 12:49:50 +00:00
parent 8e976d2e4f
commit 95fa776e41
2 changed files with 12 additions and 10 deletions

View File

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

View File

@ -1,10 +0,0 @@
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";