fix: sql fail in real structure...
gitea/salix/pipeline/head There was a failure building this commit
Details
gitea/salix/pipeline/head There was a failure building this commit
Details
This commit is contained in:
parent
56f7794d87
commit
39d4b53872
|
@ -2,3 +2,6 @@ ALTER TABLE `util`.`notificationSubscription`
|
||||||
ADD `id` int(11) auto_increment NULL,
|
ADD `id` int(11) auto_increment NULL,
|
||||||
DROP PRIMARY KEY,
|
DROP PRIMARY KEY,
|
||||||
ADD CONSTRAINT PRIMARY KEY (`id`);
|
ADD CONSTRAINT PRIMARY KEY (`id`);
|
||||||
|
|
||||||
|
ALTER TABLE `util`.`notificationSubscription`
|
||||||
|
ADD KEY `notificationSubscription_ibfk_1` (`notificationFk`);
|
|
@ -19729,7 +19729,6 @@ CREATE TABLE `notificationSubscription` (
|
||||||
`notificationFk` int(11) NOT NULL,
|
`notificationFk` int(11) NOT NULL,
|
||||||
`userFk` int(10) unsigned NOT NULL,
|
`userFk` int(10) unsigned NOT NULL,
|
||||||
PRIMARY KEY (`notificationFk`,`userFk`),
|
PRIMARY KEY (`notificationFk`,`userFk`),
|
||||||
KEY `notificationSubscription_ibfk_1` (`notificationFk`),
|
|
||||||
KEY `notificationSubscription_ibfk_2` (`userFk`),
|
KEY `notificationSubscription_ibfk_2` (`userFk`),
|
||||||
CONSTRAINT `notificationSubscription_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `notification` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
CONSTRAINT `notificationSubscription_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `notification` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
|
||||||
CONSTRAINT `notificationSubscription_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
CONSTRAINT `notificationSubscription_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE
|
||||||
|
|
Loading…
Reference in New Issue