diff --git a/services/db/install/changes/1.0.8/01-ACL.sql b/services/db/install/changes/1.0.8/01-ACL.sql index d8abe02f2..a275dc762 100644 --- a/services/db/install/changes/1.0.8/01-ACL.sql +++ b/services/db/install/changes/1.0.8/01-ACL.sql @@ -1,2 +1,3 @@ UPDATE `salix`.`ACL` SET `accessType`='*' WHERE `id`='58'; -UPDATE `salix`.`ACL` SET `accessType`='*' WHERE `id`='60'; \ No newline at end of file +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'); \ No newline at end of file diff --git a/services/db/install/changes/1.0.8/manaSpellersRequery.sql b/services/db/install/changes/1.0.8/manaSpellersRequery.sql index fa24d46b6..862132850 100644 --- a/services/db/install/changes/1.0.8/manaSpellersRequery.sql +++ b/services/db/install/changes/1.0.8/manaSpellersRequery.sql @@ -18,7 +18,8 @@ BEGIN SELECT max(dated) INTO vFromDated FROM clientManaCache; - + + REPLACE bs.workerMana (workerFk, amount) SELECT worker, sum(mana) FROM ( SELECT s.quantity * sc.value as mana