From ceb643359fa0e56fb1e93a7095b8a7e691ed21cb Mon Sep 17 00:00:00 2001 From: Andreas Granig Date: Wed, 7 Aug 2013 15:30:55 +0200 Subject: [PATCH] Add xmpp entries to xml hosts. --- db_scripts/diff/15001.down | 8 ++++++++ db_scripts/diff/15001.up | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 db_scripts/diff/15001.down create mode 100644 db_scripts/diff/15001.up diff --git a/db_scripts/diff/15001.down b/db_scripts/diff/15001.down new file mode 100644 index 00000000..30ef3d13 --- /dev/null +++ b/db_scripts/diff/15001.down @@ -0,0 +1,8 @@ +USE provisioning; + +DELETE FROM xmlhostgroups + WHERE group_id = (SELECT id FROM xmlgroups WHERE name = 'xmpp') + AND host_id = (SELECT id FROM xmlhosts WHERE description = 'Prosody'); + +DELETE FROM xmlhosts WHERE description = 'Prosody'; +DELETE FROM xmlgroups WHERE name = 'xmpp'; diff --git a/db_scripts/diff/15001.up b/db_scripts/diff/15001.up new file mode 100644 index 00000000..6b35220f --- /dev/null +++ b/db_scripts/diff/15001.up @@ -0,0 +1,10 @@ +USE provisioning; + + +INSERT INTO xmlgroups VALUES (NULL, 'xmpp'); +INSERT INTO xmlhosts VALUES (NULL, '127.0.0.1', '5582,', '/', NULL, 'Prosody'); +INSERT INTO xmlhostgroups VALUES ( + NULL, + (SELECT id FROM xmlgroups WHERE name = 'xmpp'), + (SELECT id FROM xmlhosts WHERE description = 'Prosody') +);