mirror of https://github.com/sipwise/db-schema.git
parent
398a167fa4
commit
f5d455c73a
@ -1,8 +1,8 @@
|
|||||||
USE provisioning;
|
USE provisioning;
|
||||||
|
|
||||||
DELETE FROM xmlhostgroups
|
DELETE FROM xmlhostgroups
|
||||||
WHERE group_id = (SELECT id FROM xmlgroups WHERE name = 'pbx')
|
WHERE group_id IN (SELECT id FROM xmlgroups WHERE name = 'pbx')
|
||||||
AND host_id = (SELECT id FROM xmlhosts WHERE description = 'Sems-PBX');
|
AND host_id IN (SELECT id FROM xmlhosts WHERE description = 'Sems-PBX');
|
||||||
|
|
||||||
DELETE FROM xmlhosts WHERE description = 'Sems-PBX';
|
DELETE FROM xmlhosts WHERE description = 'Sems-PBX';
|
||||||
DELETE FROM xmlgroups WHERE name = 'pbx';
|
DELETE FROM xmlgroups WHERE name = 'pbx';
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
USE provisioning;
|
## MT#5571 The DB statements were commented to prevent errors on duplicate inserts.
|
||||||
|
## The tables xmlgroups, xmlhosts and xmlhostgroups are being handled by mysql_values.cfg.services
|
||||||
|
#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 (
|
#INSERT INTO xmlgroups VALUES (NULL, 'pbx');
|
||||||
NULL,
|
#INSERT INTO xmlhosts VALUES (NULL, '127.0.0.1', '8095', '/', NULL, 'Sems-PBX');
|
||||||
(SELECT id FROM xmlgroups WHERE name = 'pbx'),
|
#INSERT INTO xmlhostgroups VALUES (
|
||||||
(SELECT id FROM xmlhosts WHERE description = 'Sems-PBX')
|
# NULL,
|
||||||
);
|
# (SELECT id FROM xmlgroups WHERE name = 'pbx'),
|
||||||
|
# (SELECT id FROM xmlhosts WHERE description = 'Sems-PBX')
|
||||||
|
#);
|
||||||
|
Loading…
Reference in new issue