update structure

This commit is contained in:
Bernat 2018-07-17 13:39:20 +02:00
parent 56344ac301
commit 8c7f05785c
2 changed files with 4 additions and 2 deletions

View File

@ -1,2 +1,3 @@
UPDATE `salix`.`ACL` SET `accessType`='*' WHERE `id`='58'; UPDATE `salix`.`ACL` SET `accessType`='*' WHERE `id`='58';
UPDATE `salix`.`ACL` SET `accessType`='*' WHERE `id`='60'; UPDATE `salix`.`ACL` SET `accessType`='*' WHERE `id`='60';
INSERT INTO `salix`.`ACL` (`id`,`model`, `property`, `accessType`, `permission`, `principalType`, `principalId`)VALUES (92, 'Sale', 'moveToNewTicket', '*', 'ALLOW', 'ROLE', 'employee');

View File

@ -19,6 +19,7 @@ BEGIN
SELECT max(dated) INTO vFromDated SELECT max(dated) INTO vFromDated
FROM clientManaCache; FROM clientManaCache;
REPLACE bs.workerMana (workerFk, amount)
SELECT worker, sum(mana) FROM SELECT worker, sum(mana) FROM
( (
SELECT s.quantity * sc.value as mana SELECT s.quantity * sc.value as mana