From 29f8cede79c1986a87ac35f77e8b4b47a9fc1f9a Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Tue, 27 Mar 2012 16:50:46 +0000 Subject: [PATCH] add grants for sems_prepaid to base schema files - i really meant to commit all changes in one batch but part of them went to r8162, apparently with wrong commit message; - our grant management *really* sucks, i just hope that grants have been put into proper shape now without breaking anything. --- db_scripts/base/0080_grants_dbs.template | 3 +++ db_scripts/base/6568.up | 2 ++ 2 files changed, 5 insertions(+) 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';