refs #5858 feat: alter table util.notification

This commit is contained in:
Javier Segarra 2024-03-09 11:27:29 +01:00
parent 7999a9bf93
commit 4994a836c7
2 changed files with 4 additions and 4 deletions

View File

@ -0,0 +1 @@
ALTER TABLE util.notification MODIFY COLUMN id int(11) auto_increment NOT NULL;

View File

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