salix/db/changes/10470-family/00-aclMdb.sql

15 lines
555 B
MySQL
Raw Normal View History

CREATE TABLE IF NOT EXISTS `vn`.`mdbBranch` (
2022-05-25 12:59:28 +00:00
`name` VARCHAR(255),
PRIMARY KEY(`name`)
);
CREATE TABLE IF NOT EXISTS `vn`.`mdbVersion` (
2022-05-25 12:59:28 +00:00
`app` VARCHAR(255) NOT NULL,
`branchFk` VARCHAR(255) NOT NULL,
`version` INT,
CONSTRAINT `mdbVersion_branchFk` FOREIGN KEY (`branchFk`) REFERENCES `vn`.`mdbBranch` (`name`) ON DELETE CASCADE ON UPDATE CASCADE
);
2022-05-27 11:27:05 +00:00
INSERT IGNORE INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
VALUES(318, 'MdbVersion', '*', '*', 'ALLOW', 'ROLE', 'developer');