refs #5858 feat: alter table util.notification
This commit is contained in:
parent
7999a9bf93
commit
4994a836c7
|
@ -0,0 +1 @@
|
||||||
|
ALTER TABLE util.notification MODIFY COLUMN id int(11) auto_increment NOT NULL;
|
|
@ -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"));
|
||||||
|
|
Loading…
Reference in New Issue