UPDATE ConfigurationValues SET ModuleOwner = 'In-News', Section = 'in-news:configuration_search' WHERE VariableName LIKE 'SearchRel_%_article' OR VariableName = 'Search_ShowMultiple_article';

INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Keyword_articles', 'la_config_SearchRel_DefaultKeyword', 'la_text_keyword', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Pop_articles', 'la_config_DefaultPop', 'la_text_popularity', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Rating_articles', 'la_config_DefaultRating', 'la_prompt_Rating', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('Search_ShowMultiple_articles', 'la_config_ShowMultiple', 'la_Text_MultipleShow', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Increase_articles', 'la_config_DefaultIncreaseImportance', 'la_text_increase_importance', 'text', NULL, NULL, 0, 1);

UPDATE ConfigurationValues SET VariableName = 'SearchRel_Keyword_articles' WHERE VariableName = 'SearchRel_Keyword_article';
UPDATE ConfigurationValues SET VariableName = 'SearchRel_Pop_articles' WHERE VariableName = 'SearchRel_Pop_article';
UPDATE ConfigurationValues SET VariableName = 'SearchRel_Rating_articles' WHERE VariableName = 'SearchRel_Rating_article';
UPDATE ConfigurationValues SET VariableName = 'SearchRel_Increase_articles' WHERE VariableName = 'SearchRel_Increase_article';
UPDATE ConfigurationValues SET VariableName = 'Search_ShowMultiple_articles' WHERE VariableName = 'Search_ShowMultiple_article';

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

INSERT INTO ConfigurationAdmin VALUES ('n_CategoryTemplate', 'la_section_Templates', 'la_fld_CategoryTemplate', 'text', '', '', 1, 0);
INSERT INTO ConfigurationAdmin VALUES ('n_ItemTemplate', 'la_section_Templates', 'la_fld_ItemTemplate', 'text', '', '', 1, 0);

INSERT INTO ConfigurationValues VALUES ('n_CategoryTemplate', 'innews/index', 'In-News', 'in-news:configuration_output');
INSERT INTO ConfigurationValues VALUES ('n_ItemTemplate', 'innews/detail', 'In-News', 'in-news:configuration_output');

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