From 62fd7456660f9585e19a3612c67bcfc1bb809719 Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Thu, 26 Jun 2014 13:57:50 +0200 Subject: [PATCH] MT#7545 Rework pbxgroup table to mapping table --- db_scripts/diff/15074.up | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 db_scripts/diff/15074.up diff --git a/db_scripts/diff/15074.up b/db_scripts/diff/15074.up new file mode 100644 index 00000000..abbae856 --- /dev/null +++ b/db_scripts/diff/15074.up @@ -0,0 +1,15 @@ +USE provisioning; + +-- not in use anymore +DELETE FROM voip_pbx_groups; + +-- rework to be a mapping table instead +ALTER TABLE voip_pbx_groups + DROP COLUMN contract_id, + DROP COLUMN name, + DROP COLUMN extension, + DROP COLUMN hunt_policy, + DROP COLUMN hunt_policy_timeout, + ADD COLUMN group_id INT(11) UNSIGNED NOT NULL, + ADD KEY group_idx(group_id); +