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'; +