INSERT INTO ConfigurationAdmin  VALUES ('SessionReferrerCheck', 'la_Text_Website', 'la_promt_ReferrerCheck', 'checkbox', NULL , NULL , '9', '1');
INSERT INTO ConfigurationValues VALUES ('SessionReferrerCheck', '1', 'In-Portal', 'in-portal:configure_general');

INSERT INTO ConfigurationValues VALUES ('SessionCookieName', 'sid', 'In-Portal', 'in-portal:configure_general');
INSERT INTO ConfigurationValues VALUES ('UseModRewrite', '0', 'In-Portal', 'in-portal:configure_general');

INSERT INTO ConfigurationAdmin VALUES ('SessionCookieName', 'la_Text_Website', 'la_prompt_session_cookie_name', 'text', '', '', 8, 1);
INSERT INTO ConfigurationAdmin VALUES ('UseModRewrite', 'la_Text_Website', 'la_config_use_modrewrite', 'checkbox', '', '', 14, 1);

ALTER TABLE Category ADD Filename text NOT NULL AFTER Name;
ALTER TABLE Category ADD AutomaticFilename TINYINT UNSIGNED NOT NULL AFTER Filename ;
ALTER TABLE Category ADD NamedParentPath TEXT NOT NULL AFTER ParentPath;

ALTER TABLE Visits ADD INDEX (AffiliateId);
ALTER TABLE Visits ADD INDEX (PortalUserId);

UPDATE Modules SET Version = '1.1.4' WHERE Name = 'In-Portal';