diff --git a/services/db/install/changes/1.2-CHECK/05-clientLog.sql b/services/db/install/changes/1.2-CHECK/05-clientLog.sql new file mode 100644 index 000000000..18b17c036 --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/05-clientLog.sql @@ -0,0 +1,10 @@ +ALTER TABLE `vn`.`clientLog` +DROP FOREIGN KEY `clientLog_ibfk_2`; +ALTER TABLE `vn`.`clientLog` +CHANGE COLUMN `userFk` `userFk` INT(10) UNSIGNED NULL DEFAULT NULL ; +ALTER TABLE `vn`.`clientLog` +ADD CONSTRAINT `clientLog_ibfk_2` + FOREIGN KEY (`userFk`) + REFERENCES `account`.`user` (`id`) + ON DELETE CASCADE + ON UPDATE CASCADE; diff --git a/services/db/install/changes/1.2-CHECK/06.ACL.sql b/services/db/install/changes/1.2-CHECK/06.ACL.sql new file mode 100644 index 000000000..a8bf32860 --- /dev/null +++ b/services/db/install/changes/1.2-CHECK/06.ACL.sql @@ -0,0 +1,11 @@ +INSERT INTO salix.ACL(id, model, property, accessType, permission, principalType, principalId) +VALUES +(104, 'Item', '*', 'WRITE', 'ALLOW', 'ROLE', 'marketingBoss'), +(105, 'ItemBarcode', '*', 'WRITE', 'ALLOW', 'ROLE', 'marketingBoss'), +(106, 'ItemBotanical', '*', 'WRITE', 'ALLOW', 'ROLE', 'marketingBoss'), +(107, 'ItemNiche', '*', 'WRITE', 'ALLOW', 'ROLE', 'marketingBoss'), +(108, 'ItemPlacement', '*', 'WRITE', 'ALLOW', 'ROLE', 'marketingBoss'); + +UPDATE salix.ACL +SET model='ItemTag', property='*', accessType='WRITE', permission='ALLOW', principalType='ROLE', principalId='marketingBoss' +WHERE id=52; \ No newline at end of file