Skip to content

Commit

Permalink
Add to default schema
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Dec 21, 2022
1 parent 96a1d1a commit ab717a8
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions SQL/0000-00-02-Permission.sql
Original file line number Diff line number Diff line change
Expand Up @@ -152,3 +152,11 @@ CREATE TABLE `notification_modules_perm_rel` (
INSERT INTO notification_modules_perm_rel SELECT nm.id, p.permID FROM notification_modules nm JOIN permissions p WHERE nm.module_name='media' AND (p.code='media_write' OR p.code='media_read');
INSERT INTO notification_modules_perm_rel SELECT nm.id, p.permID FROM notification_modules nm JOIN permissions p WHERE nm.module_name='document_repository' AND (p.code='document_repository_view' OR p.code='document_repository_delete');
INSERT INTO notification_modules_perm_rel SELECT nm.id, p.permID FROM notification_modules nm JOIN permissions p WHERE nm.module_name='publication' AND (p.code='publication_view' OR p.code='publication_propose' OR p.code='publication_approve');

CREATE TABLE `testnames_permissions_rel` (
`TestID` int(10) unsigned NOT NULL,
`permID` int(10) unsigned NOT NULL,
PRIMARY KEY (`TestID`,`permID`),
CONSTRAINT `FK_testnames_permissions_rel_test` FOREIGN KEY (`TestID`) REFERENCES `test_names` (`ID`),
CONSTRAINT `FK_testnames_permissions_rel_perm` FOREIGN KEY (`permID`) REFERENCES `permissions` (`permID`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

0 comments on commit ab717a8

Please # to comment.