You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
db-schema/db_scripts/diff/13288.up

11 lines
250 B

USE accounting;
GRANT UPDATE on accounting.cdr TO 'exporter'@'localhost';
SET AUTOCOMMIT=0;
SELECT acc_id FROM mark WHERE collector='exporter-lastid' INTO @lastid;
UPDATE cdr SET export_status='ok', exported_at=NOW() WHERE id <= @lastid;
COMMIT;