UPDATE ConfigurationValues SET ModuleOwner = 'In-Link', Section = 'in-link:configuration_search' WHERE VariableName LIKE 'SearchRel_%_links' OR VariableName = 'Search_ShowMultiple_link';
UPDATE ConfigurationValues SET VariableName = 'Search_ShowMultiple_links' WHERE VariableName = 'Search_ShowMultiple_link';

INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Keyword_links', 'la_config_SearchRel_DefaultKeyword', 'la_text_keyword', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Pop_links', 'la_config_DefaultPop', 'la_text_popularity', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Rating_links', 'la_config_DefaultRating', 'la_prompt_Rating', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('Search_ShowMultiple_links', 'la_config_ShowMultiple', 'la_Text_MultipleShow', 'text', NULL, NULL, 0, 1);
INSERT INTO ConfigurationAdmin VALUES ('SearchRel_Increase_links', 'la_config_DefaultIncreaseImportance', 'la_text_increase_importance', 'text', NULL, NULL, 0, 1);

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

INSERT INTO ConfigurationAdmin VALUES ('l_CategoryTemplate', 'la_section_Templates', 'la_fld_CategoryTemplate', 'text', '', '', 1, 0);
INSERT INTO ConfigurationAdmin VALUES ('l_ItemTemplate', 'la_section_Templates', 'la_fld_ItemTemplate', 'text', '', '', 1, 0);

INSERT INTO ConfigurationValues VALUES ('l_CategoryTemplate', 'inlink/index', 'In-Link', 'in-link:configuration_output');
INSERT INTO ConfigurationValues VALUES ('l_ItemTemplate', 'inlink/detail', 'In-Link', 'in-link:configuration_output');

UPDATE Modules SET Version = '3.1.7' WHERE Name = 'In-Link';