4797-lilium-worker-notifications #1229

Merged
pau merged 37 commits from 4797-lilium-worker-notifications into dev 2023-02-02 08:53:29 +00:00
2 changed files with 3 additions and 1 deletions
Showing only changes of commit 39d4b53872 - Show all commits

View File

@ -2,3 +2,6 @@ ALTER TABLE `util`.`notificationSubscription`
ADD `id` int(11) auto_increment NULL,
DROP PRIMARY KEY,
ADD CONSTRAINT PRIMARY KEY (`id`);
ALTER TABLE `util`.`notificationSubscription`
ADD KEY `notificationSubscription_ibfk_1` (`notificationFk`);

View File

@ -19729,7 +19729,6 @@ CREATE TABLE `notificationSubscription` (
`notificationFk` int(11) NOT NULL,
pau marked this conversation as resolved Outdated
Outdated
Review

Minúscula

Minúscula
Outdated
Review

Esto no debería estar en el changes también???

Esto no debería estar en el changes también???
`userFk` int(10) unsigned NOT NULL,
PRIMARY KEY (`notificationFk`,`userFk`),
KEY `notificationSubscription_ibfk_1` (`notificationFk`),
KEY `notificationSubscription_ibfk_2` (`userFk`),
pau marked this conversation as resolved Outdated
Outdated
Review

Minúscula

Minúscula
CONSTRAINT `notificationSubscription_ibfk_1` FOREIGN KEY (`notificationFk`) REFERENCES `notification` (`id`) ON DELETE CASCADE ON UPDATE CASCADE,
pau marked this conversation as resolved Outdated
Outdated
Review

Hace falta añadir KEY notificationSubscription_ibfk_1 (notificationFk) ?

Hace falta añadir `KEY `notificationSubscription_ibfk_1` (`notificationFk`)` ?
CONSTRAINT `notificationSubscription_ibfk_2` FOREIGN KEY (`userFk`) REFERENCES `account`.`user` (`id`) ON DELETE CASCADE ON UPDATE CASCADE