
-- add columns for object file location caching in app framework
ALTER TABLE ApplicationFrameworkSettings
        ADD COLUMN ObjectLocationCache MEDIUMBLOB;
ALTER TABLE ApplicationFrameworkSettings
        ADD COLUMN ObjectLocationCacheExpiration DATETIME;
ALTER TABLE ApplicationFrameworkSettings
        ADD COLUMN ObjectLocationCacheInterval INT DEFAULT 60;

-- add columns for slow page load logging in app framework
ALTER TABLE ApplicationFrameworkSettings
        ADD COLUMN LogSlowPageLoads INT DEFAULT 0;
ALTER TABLE ApplicationFrameworkSettings
        ADD COLUMN SlowPageLoadThreshold INT DEFAULT 10;

-- change template location cache storage to type more suitable for serialize()
ALTER TABLE ApplicationFrameworkSettings
        CHANGE COLUMN TemplateLocationCache TemplateLocationCache MEDIUMBLOB;

-- change task crash info column to handle larger crash data
ALTER TABLE RunningTasks MODIFY COLUMN CrashInfo MEDIUMBLOB;

-- add index for user privileges
ALTER TABLE APUserPrivileges ADD INDEX Index_P (Privilege);

