From 0a4421e8077fac5f058ae8eaddc6eaefcccb4348 Mon Sep 17 00:00:00 2001 From: Rene Krenn Date: Thu, 2 Aug 2018 11:02:32 +0200 Subject: [PATCH] TT#42261 add prepaid_library col to billing_profiles Change-Id: Ib2a1466625165fb30e69f8c25edb475fb845c3c9 --- db_scripts/diff/15421.down | 9 +++++++++ db_scripts/diff/15421.up | 9 +++++++++ 2 files changed, 18 insertions(+) create mode 100644 db_scripts/diff/15421.down create mode 100644 db_scripts/diff/15421.up diff --git a/db_scripts/diff/15421.down b/db_scripts/diff/15421.down new file mode 100644 index 00000000..e5329da8 --- /dev/null +++ b/db_scripts/diff/15421.down @@ -0,0 +1,9 @@ +USE billing; + +ALTER TABLE billing_profiles DROP COLUMN prepaid_library; + +UPDATE provisioning.voip_preferences SET description = NULL + WHERE attribute = 'prepaid'; +UPDATE provisioning.voip_preferences SET description = "The prepaid billing interface for customer with prepaid billing profile." + WHERE attribute = 'prepaid_library'; + diff --git a/db_scripts/diff/15421.up b/db_scripts/diff/15421.up new file mode 100644 index 00000000..d3d4e2a2 --- /dev/null +++ b/db_scripts/diff/15421.up @@ -0,0 +1,9 @@ +USE billing; + +ALTER TABLE billing_profiles ADD COLUMN prepaid_library ENUM('libswrate', 'libinewrate') NOT NULL DEFAULT 'libswrate'; + +UPDATE provisioning.voip_preferences SET description = "Deprecated, no longer used by the system." + WHERE attribute = 'prepaid'; +UPDATE provisioning.voip_preferences SET description = CONCAT(description," Deprecated, no longer used by the system.") + WHERE attribute = 'prepaid_library'; +