From 3bcec0a6d84672d53b53f87b9fdcb34573147661 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Tue, 26 Mar 2013 21:06:56 +0000 Subject: [PATCH] Alter permissions for exporter user. Needed for updating export fields. --- db_scripts/diff/13288.down | 2 ++ db_scripts/diff/13288.up | 2 ++ 2 files changed, 4 insertions(+) diff --git a/db_scripts/diff/13288.down b/db_scripts/diff/13288.down index 874c6407..8f3ed1de 100644 --- a/db_scripts/diff/13288.down +++ b/db_scripts/diff/13288.down @@ -1,5 +1,7 @@ USE accounting; +REVOKE UPDATE on accounting.cdr FROM 'exporter'@'localhost'; + SET AUTOCOMMIT=0; UPDATE cdr SET export_status='unexported', exported_at=NULL; diff --git a/db_scripts/diff/13288.up b/db_scripts/diff/13288.up index 6d56b2c5..adeeb309 100644 --- a/db_scripts/diff/13288.up +++ b/db_scripts/diff/13288.up @@ -1,5 +1,7 @@ USE accounting; +GRANT UPDATE on accounting.cdr TO 'exporter'@'localhost'; + SET AUTOCOMMIT=0; SELECT acc_id FROM mark WHERE collector='exporter-lastid' INTO @lastid;