From 16b00675ad201119d34bca131b83e5c3a0c11eaf Mon Sep 17 00:00:00 2001 From: Andrew Pogrebennyk Date: Tue, 7 Jan 2014 18:36:01 +0100 Subject: [PATCH] MT#5575 add the entries for sems-pbx to xmlgroups, hosts and hostgroups --- db_scripts/diff/15038.down | 8 ++++++++ db_scripts/diff/15038.up | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 db_scripts/diff/15038.down create mode 100644 db_scripts/diff/15038.up diff --git a/db_scripts/diff/15038.down b/db_scripts/diff/15038.down new file mode 100644 index 00000000..77202673 --- /dev/null +++ b/db_scripts/diff/15038.down @@ -0,0 +1,8 @@ +USE provisioning; + +DELETE FROM xmlhostgroups + WHERE group_id = (SELECT id FROM xmlgroups WHERE name = 'pbx') + AND host_id = (SELECT id FROM xmlhosts WHERE description = 'Sems-PBX'); + +DELETE FROM xmlhosts WHERE description = 'Sems-PBX'; +DELETE FROM xmlgroups WHERE name = 'pbx'; diff --git a/db_scripts/diff/15038.up b/db_scripts/diff/15038.up new file mode 100644 index 00000000..ad2a640f --- /dev/null +++ b/db_scripts/diff/15038.up @@ -0,0 +1,10 @@ +USE provisioning; + + +INSERT INTO xmlgroups VALUES (NULL, 'pbx'); +INSERT INTO xmlhosts VALUES (NULL, '127.0.0.1', '8095', '/', NULL, 'Sems-PBX'); +INSERT INTO xmlhostgroups VALUES ( + NULL, + (SELECT id FROM xmlgroups WHERE name = 'pbx'), + (SELECT id FROM xmlhosts WHERE description = 'Sems-PBX') +);