requested changes
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
a2150b8b08
commit
3184dcd39d
|
@ -1,4 +1,4 @@
|
|||
INSERT INTO `salix`.`ACL` (model,property,accessType,principalId)
|
||||
VALUES ('NotificationSubscription','*','*','employee');
|
||||
INSERT INTO `salix`.`ACL` (model,property,accessType,principalId)
|
||||
VALUES ('NotificationAcl','*','*','employee');
|
||||
VALUES
|
||||
('NotificationSubscription','*','*','employee'),
|
||||
('NotificationAcl','*','READ','employee');
|
||||
|
|
|
@ -1,10 +1,4 @@
|
|||
CREATE OR REPLACE TABLE `util`.`notificationSubscription` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`notificationFk` int(11) NOT NULL,
|
||||
`userFk` int(10) unsigned NOT NULL,
|
||||
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;
|
||||
ALTER TABLE util.notificationSubscription
|
||||
ADD Id int(11) auto_increment NULL,
|
||||
DROP PRIMARY KEY,
|
||||
ADD CONSTRAINT PRIMARY KEY (Id);
|
||||
|
|
|
@ -19726,10 +19726,9 @@ DROP TABLE IF EXISTS `notificationSubscription`;
|
|||
/*!40101 SET @saved_cs_client = @@character_set_client */;
|
||||
/*!40101 SET character_set_client = utf8 */;
|
||||
CREATE TABLE `notificationSubscription` (
|
||||
`id` int(11) NOT NULL AUTO_INCREMENT,
|
||||
`notificationFk` int(11) NOT NULL,
|
||||
`userFk` int(10) unsigned NOT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
PRIMARY KEY (`notificationFk`,`userFk`),
|
||||
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,
|
||||
|
|
Loading…
Reference in New Issue