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;