From 898beba54caa5141fe96d7a68a76ca3a626428ed Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Fri, 5 Jun 2020 13:41:01 +0200 Subject: [PATCH] TT#82317 save contract balance delta for re-rating this cdr tag will be used to persist the compressed delta datastructure for contract_balance records. additional tablespace consumption is minimal: there will be only one string value (~20chars on average) required per cdr. Change-Id: I32557443df2efa7381c85ddfb8c380c8df02df5e --- db_scripts/diff/15607.down | 7 +++++++ db_scripts/diff/15607.up | 6 ++++++ 2 files changed, 13 insertions(+) create mode 100644 db_scripts/diff/15607.down create mode 100644 db_scripts/diff/15607.up diff --git a/db_scripts/diff/15607.down b/db_scripts/diff/15607.down new file mode 100644 index 00000000..d6d7f2e7 --- /dev/null +++ b/db_scripts/diff/15607.down @@ -0,0 +1,7 @@ +USE accounting; +SET autocommit=0; + +DELETE FROM cdr_tag WHERE type = 'balance_delta'; + +COMMIT; + diff --git a/db_scripts/diff/15607.up b/db_scripts/diff/15607.up new file mode 100644 index 00000000..54cff66f --- /dev/null +++ b/db_scripts/diff/15607.up @@ -0,0 +1,6 @@ +USE accounting; +SET autocommit=0; + +INSERT INTO cdr_tag SET id = null, type = 'balance_delta'; + +COMMIT;