From 8c7f05785c4ecb357bf4e26e9c23ac6e01f3afad Mon Sep 17 00:00:00 2001 From: Bernat Date: Tue, 17 Jul 2018 13:39:20 +0200 Subject: [PATCH] update structure --- services/db/install/changes/1.0.8/01-ACL.sql | 3 ++- services/db/install/changes/1.0.8/manaSpellersRequery.sql | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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 d8abe02f2e..a275dc7623 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 fa24d46b63..8621328502 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