diff --git a/db_scripts/base/0080_grants_dbs.template b/db_scripts/base/0080_grants_dbs.template index c1eefa62..b0cbfd8b 100644 --- a/db_scripts/base/0080_grants_dbs.template +++ b/db_scripts/base/0080_grants_dbs.template @@ -27,6 +27,9 @@ GRANT ALL on syslog.* TO 'rsyslog'@'localhost' IDENTIFIED BY 'PW_RSYSLOG'; GRANT SELECT,INSERT,UPDATE ON accounting.* TO 'rateomat'@localhost' IDENTIFIED BY 'PW_RATEOMAT'; GRANT SELECT,INSERT,UPDATE ON billing.* TO 'rateomat'@'localhost' IDENTIFIED BY 'PW_RATEOMAT'; +GRANT SELECT,INSERT,UPDATE ON accounting.* TO 'sems_prepaid'@'localhost' IDENTIFIED BY 'PW_SEMS_PREPAID'; +GRANT SELECT,INSERT,UPDATE ON billing.* TO 'sems_prepaid'@'localhost' IDENTIFIED BY 'PW_SEMS_PREPAID'; + GRANT ALL PRIVILEGES ON *.* TO 'sipwise'@'localhost' IDENTIFIED BY 'PW_SIPWISE' WITH GRANT OPTION; GRANT ALL PRIVILEGES ON kamailio.* to 'dbcleaner'@'localhost' IDENTIFIED BY 'PW_CLEANUP_TOOLS'; diff --git a/db_scripts/base/6568.up b/db_scripts/base/6568.up index 0fb37da7..3abcb493 100644 --- a/db_scripts/base/6568.up +++ b/db_scripts/base/6568.up @@ -7,3 +7,5 @@ CREATE TABLE `prepaid_costs` ( `free_time_used` int(10) unsigned NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB; + +GRANT DELETE ON accounting.prepaid_costs TO 'rateomat'@'localhost';