Private GIT

Skip to content
Snippets Groups Projects
Commit e2ccac33 authored by Julien Mathis's avatar Julien Mathis
Browse files

fix essor with insertion of Dumper

parent 22e48ed2
No related branches found
No related tags found
No related merge requests found
...@@ -2,30 +2,30 @@ ...@@ -2,30 +2,30 @@
INSERT INTO `options` (`key`, `value`) VALUES ('broker_socket_path', '@CENTREONBROKER_VARLIB@/command'); INSERT INTO `options` (`key`, `value`) VALUES ('broker_socket_path', '@CENTREONBROKER_VARLIB@/command');
-- Add new configuration information for synchronize database with Centreon Broker -- Add new configuration information for synchronize database with Centreon Broker
INSERT INTO `cb_module` (`cb_module_id`, `name`, `libname`, `loading_pos`, `is_bundle`, `is_activated`) VALUES INSERT INTO `cb_module` (`name`, `libname`, `loading_pos`, `is_bundle`, `is_activated`) VALUES
(17, 'Dumper', 'dumper.so', 20, 0, 1); ('Dumper', 'dumper.so', 20, 0, 1);
INSERT INTO `cb_type` (`cb_type_id`, `type_name`, `type_shortname`, `cb_module_id`) VALUES INSERT INTO `cb_type` (`type_name`, `type_shortname`, `cb_module_id`) VALUES
(28, 'Database configuration reader', 'db_cfg_reader', 17), ('Database configuration reader', 'db_cfg_reader', (SELECT cb_module_id FROM cb_module WHERE name LIKE 'Dumper')),
(29, 'Database configuration writer', 'db_cfg_writer', 17); ('Database configuration writer', 'db_cfg_writer', (SELECT cb_module_id FROM cb_module WHERE name LIKE 'Dumper'));
INSERT INTO `cb_type_field_relation` (`cb_type_id`, `cb_field_id`, `is_required`, `order_display`) VALUES INSERT INTO `cb_type_field_relation` (`cb_type_id`, `cb_field_id`, `is_required`, `order_display`) VALUES
(28, 15, 1, 1), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration reader'), 15, 1, 1),
(28, 7, 1, 2), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration reader'), 7, 1, 2),
(28, 18, 0, 3), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration reader'), 18, 0, 3),
(28, 8, 0, 4), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration reader'), 8, 0, 4),
(28, 9, 0, 5), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration reader'), 9, 0, 5),
(28, 10, 1, 6), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration reader'), 10, 1, 6),
(29, 15, 1, 1), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration writer'), 15, 1, 1),
(29, 7, 1, 2), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration writer'), 7, 1, 2),
(29, 18, 0, 3), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration writer'), 18, 0, 3),
(29, 8, 0, 4), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration writer'), 8, 0, 4),
(29, 9, 0, 5), ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration writer'), 9, 0, 5),
(29, 10, 1, 6); ((SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration writer'), 10, 1, 6);
INSERT INTO `cb_tag_type_relation` (`cb_tag_id`, `cb_type_id`, `cb_type_uniq`) VALUES INSERT INTO `cb_tag_type_relation` (`cb_tag_id`, `cb_type_id`, `cb_type_uniq`) VALUES
(1, 28, 1), (1, (SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration reader'), 1),
(1, 29, 1); (1, (SELECT cb_type_id FROM cb_type WHERE type_name LIKE 'Database configuration writer'), 1);
ALTER TABLE cfg_centreonbroker ADD COLUMN command_file VARCHAR(255); ALTER TABLE cfg_centreonbroker ADD COLUMN command_file VARCHAR(255);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment