Merge pull request 'fix(changes): prevent sql errors when test to master' (#1005) from TEST_preventSQLerror into test
gitea/salix/pipeline/head This commit looks good Details

Reviewed-on: #1005
Reviewed-by: Carlos Jimenez Ruiz <carlosjr@verdnatura.es>
This commit is contained in:
Carlos Jimenez Ruiz 2022-06-17 10:47:29 +00:00
commit b75053dd56
3 changed files with 4 additions and 4 deletions

View File

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