2022-06-17 07:40:33 +00:00
|
|
|
CREATE TABLE IF NOT EXISTS `vn`.`mdbBranch` (
|
2022-05-25 12:59:28 +00:00
|
|
|
`name` VARCHAR(255),
|
|
|
|
PRIMARY KEY(`name`)
|
|
|
|
);
|
|
|
|
|
2022-06-17 07:40:33 +00:00
|
|
|
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
|
|
|
|
2022-06-17 07:40:33 +00:00
|
|
|
INSERT IGNORE INTO `salix`.`ACL` (`id`, `model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)
|
|
|
|
VALUES(318, 'MdbVersion', '*', '*', 'ALLOW', 'ROLE', 'developer');
|