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
3 changed files with 8 additions and 15 deletions
Showing only changes of commit 3184dcd39d - Show all commits

View File

@ -1,4 +1,4 @@
INSERT INTO `salix`.`ACL` (model,property,accessType,principalId) INSERT INTO `salix`.`ACL` (model,property,accessType,principalId)
VALUES ('NotificationSubscription','*','*','employee'); VALUES
INSERT INTO `salix`.`ACL` (model,property,accessType,principalId) ('NotificationSubscription','*','*','employee'),
pau marked this conversation as resolved Outdated
Outdated
Review

INSERT INTO salix.ACL (model,property,accessType,principalId)
VALUES ('NotificationAcl','*','READ','employee');

INSERT INTO `salix`.`ACL` (model,property,accessType,principalId) VALUES ('NotificationAcl','*','READ','employee');
VALUES ('NotificationAcl','*','*','employee'); ('NotificationAcl','*','READ','employee');

View File

@ -1,10 +1,4 @@
CREATE OR REPLACE TABLE `util`.`notificationSubscription` ( ALTER TABLE util.notificationSubscription
pau marked this conversation as resolved Outdated
Outdated
Review

Has contemplat que se borren tots els registres de la taula?

Has contemplat que se borren tots els registres de la taula?
`id` int(11) NOT NULL AUTO_INCREMENT, ADD Id int(11) auto_increment NULL,
pau marked this conversation as resolved Outdated
Outdated
Review

id

**id**
`notificationFk` int(11) NOT NULL, DROP PRIMARY KEY,
`userFk` int(10) unsigned NOT NULL, ADD CONSTRAINT PRIMARY KEY (Id);
pau marked this conversation as resolved Outdated
Outdated
Review

id

**id**
PRIMARY KEY (`id`),
KEY `notificationSubscription_ibfk_1` (`notificationFk`),
KEY `notificationSubscription_ibfk_2` (`userFk`),
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
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

View File

@ -19726,10 +19726,9 @@ DROP TABLE IF EXISTS `notificationSubscription`;
/*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET @saved_cs_client = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */; /*!40101 SET character_set_client = utf8 */;
CREATE TABLE `notificationSubscription` ( CREATE TABLE `notificationSubscription` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`notificationFk` int(11) NOT NULL, `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, `userFk` int(10) unsigned NOT NULL,
PRIMARY KEY (`id`), PRIMARY KEY (`notificationFk`,`userFk`),
KEY `notificationSubscription_ibfk_1` (`notificationFk`), KEY `notificationSubscription_ibfk_1` (`notificationFk`),
pau marked this conversation as resolved Outdated
Outdated
Review

Minúscula

Minúscula
KEY `notificationSubscription_ibfk_2` (`userFk`), KEY `notificationSubscription_ibfk_2` (`userFk`),
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_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,