diff --git a/db/versions/10820-limeAspidistra/00-grants.sql b/db/versions/10820-limeAspidistra/00-grants.sql index cd9aa341b..5e85236d4 100644 --- a/db/versions/10820-limeAspidistra/00-grants.sql +++ b/db/versions/10820-limeAspidistra/00-grants.sql @@ -1,5 +1,14 @@ - +CREATE OR REPLACE DEFINER=`root`@`localhost` PROCEDURE `vn`.`sale_replaceItem`() BEGIN END; GRANT EXECUTE ON PROCEDURE `vn`.`sale_replaceItem` TO `employee`; +DELIMITER $$ +CREATE OR REPLACE DEFINER=`root`@`localhost` FUNCTION `vn`.`worker_isInDepartment`() + RETURNS int(11) + DETERMINISTIC +BEGIN + RETURN 1; +END$$ +DELIMITER ; + GRANT EXECUTE ON FUNCTION `vn`.`worker_isInDepartment` TO `employee`; FLUSH PRIVILEGES;