From 08887d56022910fbe901095ed183e313db13ab08 Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Mon, 28 Nov 2016 13:04:55 +0100 Subject: [PATCH] TT#6832 add peer preference reason_text_for_failover Change-Id: Idc1d5ed3e2c6793b0f39584232e28a24c53e19ee --- db_scripts/diff/15304.down | 4 ++++ db_scripts/diff/15304.up | 11 +++++++++++ 2 files changed, 15 insertions(+) create mode 100644 db_scripts/diff/15304.down create mode 100644 db_scripts/diff/15304.up diff --git a/db_scripts/diff/15304.down b/db_scripts/diff/15304.down new file mode 100644 index 00000000..73288013 --- /dev/null +++ b/db_scripts/diff/15304.down @@ -0,0 +1,4 @@ +USE provisioning; + +DELETE FROM voip_preferences WHERE attribute = 'reason_text_for_failover'; + diff --git a/db_scripts/diff/15304.up b/db_scripts/diff/15304.up new file mode 100644 index 00000000..2646625e --- /dev/null +++ b/db_scripts/diff/15304.up @@ -0,0 +1,11 @@ +use provisioning; +set autocommit=0; + +SELECT id into @vpg_id FROM voip_preference_groups where name = 'Internals'; + +INSERT INTO voip_preferences (voip_preference_groups_id, attribute, label, type, max_occur, usr_pref, prof_pref, dom_pref, peer_pref, contract_pref, modify_timestamp, internal, expose_to_customer, data_type, read_only, description) +VALUES + (@vpg_id, 'reason_text_for_failover', "Failover to next peer on 5xx with given Reason text", 0, 1, 0, 0, 0, 1, 0, NOW(), 0, 0, 'string', 0, 'Failover to the next peer if it sends 5xx response with Reason text parameter matching provided value (regex).'); + +commit; +