update ACL and table clientLog
This commit is contained in:
parent
efc477f42d
commit
ea017dde5c
|
@ -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;
|
|
@ -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;
|
Loading…
Reference in New Issue