UPDATE ConfigurationValues SET ModuleOwner = 'In-Bulletin', Section = 'in-bulletin:configuration_search' WHERE VariableName LIKE 'SearchRel_%_topics' OR VariableName = 'Search_ShowMultiple_topic';
UPDATE ConfigurationValues SET ModuleOwner = 'In-Bulletin', Section = 'in-bulletin:configuration_search' WHERE VariableName LIKE 'SearchRel_%_posts';
UPDATE ConfigurationValues SET VariableName = 'Search_ShowMultiple_topics' WHERE VariableName = 'Search_ShowMultiple_topic';

INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Keyword_topics', 'la_config_SearchRel_DefaultKeyword', 'la_text_keyword', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Pop_topics', 'la_config_DefaultPop', 'la_text_popularity', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Rating_topics', 'la_config_DefaultRating', 'la_prompt_Rating', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('Search_ShowMultiple_topics', 'la_config_ShowMultiple', 'la_Text_MultipleShow', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Increase_topics', 'la_config_DefaultIncreaseImportance', 'la_text_increase_importance', 'text', NULL, NULL, 0, 1);

CREATE TABLE TopicCustomData (CustomDataId int(11) NOT NULL auto_increment, ResourceId int(10) unsigned NOT NULL default '0', PRIMARY KEY  (CustomDataId));

INSERT INTO ConfigurationAdmin VALUES ('bb_CategoryTemplate', 'la_section_Templates', 'la_fld_CategoryTemplate', 'text', '', '', 1, 0);
INSERT INTO ConfigurationAdmin VALUES ('bb_ItemTemplate', 'la_section_Templates', 'la_fld_ItemTemplate', 'text', '', '', 1, 0);

INSERT INTO ConfigurationValues VALUES ('bb_CategoryTemplate', 'inbulletin/index', 'In-Bulletin', 'in-bulletin:configuration_output');
INSERT INTO ConfigurationValues VALUES ('bb_ItemTemplate', 'inbulletin/post_list', 'In-Bulletin', 'in-bulletin:configuration_output');

UPDATE Modules SET Version = '1.1.6' WHERE Name = 'In-Bulletin';