Commit a3580992890423a6859cd1828ad6d8385a23163f

Authored by Kevin Fourie
1 parent 9403200e

KTS-2429

"config.ini must be updated during upgrade for new search to work."
Done. Added new entries.

Committed By: Kevin Fourie
Reviewed By: Conrad Vermeulen



git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@7423 c91229c3-7414-0410-bfa2-8a42b809f60b
lib/upgrades/UpgradeFunctions.inc.php
... ... @@ -946,7 +946,9 @@ class UpgradeFunctions {
946 946 // indexer Section
947 947 $ini->addItem('indexer', 'coreClass', 'JavaXMLRPCLuceneIndexer', "The core indexing class\r\n;coreClass=PHPLuceneIndexer");
948 948 $ini->addItem('indexer', 'batchDocuments', 'default', "The number of documents to be indexed in a cron session\r\n; defaults to 20");
  949 + $ini->addItem('indexer', 'batchMigrateDocuments', 'default', "The number of documents to be migrated in a cron session\r\n; defaults to 500");
949 950 $ini->addItem('indexer', 'luceneDirectory', '${varDirectory}/indexes', "The location of the lucene indexes");
  951 + $ini->addItem('indexer', 'javaLuceneURL', 'default', "The url for the Java Lucene Server. This should match up with the Lucene Server configuration.\r\n; defaults to http://localhost:8875");
950 952  
951 953 // openoffice Section
952 954 $ini->addItem('openoffice', 'host', 'default', "The host on which open office is installed\r\n; defaults to localhost");
... ... @@ -963,6 +965,7 @@ class UpgradeFunctions {
963 965 // cache Section
964 966 $ini->addItem('cache', 'cacheEnabled', 'true', '', "Enable/disable the cache and set the cache location");
965 967 $ini->addItem('cache', 'cacheDirectory', '${varDirectory}/cache');
  968 + $ini->addItem('cache', 'cachePlugins', 'true');
966 969  
967 970 // KTWebDAVSettings Section
968 971 $ini->addItem('KTWebDAVSettings', 'debug', 'off', '_LOTS_ of debug info will be logged if the following is "on"', 'This section is for KTWebDAV only');
... ... @@ -979,6 +982,10 @@ class UpgradeFunctions {
979 982 // clientToolPolicies Section
980 983 $ini->addItem('clientToolPolicies', 'explorerMetadataCapture', 'true', "These two settings control whether or not the client is prompted for metadata when a\r\n;document is added to knowledgetree via KTtools. They default to true.");
981 984 $ini->addItem('clientToolPolicies', 'officeMetadataCapture', 'true');
  985 +
  986 + // DiskUsage Section
  987 + $ini->addItem('DiskUsage', 'warningThreshold', '10', "When free space in a mount point is less than this percentage,\r\n; the disk usage dashlet will highlight the mount in ORANGE", "settings for the Disk Usage dashlet");
  988 + $ini->addItem('DiskUsage', 'urgentThreshold', '5', "When free space in a mount point is less than this percentage,\r\n; the disk usage dashlet will highlight the mount in RED");
982 989  
983 990 $ini->write();
984 991  
... ... @@ -986,6 +993,7 @@ class UpgradeFunctions {
986 993 }
987 994 // }}}
988 995  
  996 + // {{{ registerIndexingTasks
989 997 /**
990 998 * Registers the functions that are required by the indexing sub-system.
991 999 *
... ... @@ -1019,6 +1027,7 @@ class UpgradeFunctions {
1019 1027 $oScheduler->setFirstRunTime(date('Y-m-d 00:00'));
1020 1028 $oScheduler->registerTask();
1021 1029 }
  1030 + // }}}
1022 1031 }
1023 1032  
1024 1033 ?>
... ...