Commit a02493bb460bb24fead02632643b59bc4650945d

Authored by Jarrett Jordaan
2 parents 1fede6ca 55ae7c57

Merge branch 'edge' of git@github.com:ktgit/knowledgetree into edge

setup/upgrade/steps/upgradeDatabase.php
... ... @@ -225,7 +225,7 @@ class upgradeDatabase extends Step
225 225 $ret .= sprintf("<tr bgcolor='$color'><td>%s</td><td>%s</td><td>%s</td></tr>\n",
226 226 htmlspecialchars($upgrade->getDescriptor()),
227 227 htmlspecialchars($upgrade->getDescription()),
228   - $upgrade->isAlreadyApplied() ? "Yes" : "No"
  228 + $upgrade->isAlreadyApplied() ? "Yes" : "No"
229 229 );
230 230 }
231 231 $ret .= '</table>';
... ... @@ -313,7 +313,14 @@ class upgradeDatabase extends Step
313 313  
314 314 $res = $this->performAllUpgrades();
315 315 if (PEAR::isError($res) || PEAR::isError($pres)) {
316   - $this->temp_variables['upgradeStatus'] = '<font color="red">Upgrade failed.</font>';
  316 + // TODO instantiate error details hideable section
  317 + $this->temp_variables['upgradeStatus'] = '<font color="red">Database upgrade failed</font><!--:
  318 + click here for error details-->
  319 + <br/><br/>
  320 + Please restore from your backup and ensure that the database does not contain
  321 + any unsupported modifications and try the upgrade process again.
  322 + <br/><br/>
  323 + If the problem persists, contact KnowledgeTree Support.';
317 324 }
318 325 else {
319 326 $this->temp_variables['upgradeStatus'] = '<font color="green">Upgrade succeeded.</font>';
... ...
setup/upgrade/upgradeWizard.php
... ... @@ -186,6 +186,9 @@ class UpgradeWizard {
186 186 * @return mixed
187 187 */
188 188 public function systemChecks() {
  189 + // for now we don't write to any of these locations
  190 + return true;
  191 +
189 192 $res = $this->iutil->checkStructurePermissions();
190 193 if($res === true) return $res;
191 194 switch ($res) {
... ...
sql/mysql/install/data.sql
... ... @@ -1376,7 +1376,8 @@ INSERT INTO `scheduler_tasks` VALUES
1376 1376 (8,'Disk Usage and Folder Utilisation Statistics','plugins/housekeeper/bin/UpdateStats.php','',0,'5mins','2007-10-01 00:00:00',NULL,0,'enabled'),
1377 1377 (9,'Refresh Index Statistics','search2/bin/cronIndexStats.php','',0,'1min','2007-10-01',NULL,0,'enabled'),
1378 1378 (10,'Refresh Resource Dependancies','search2/bin/cronResources.php','',0,'1min','2007-10-01',NULL,0,'enabled'),
1379   -(11,'Bulk Download Queue','bin/ajaxtasks/downloadTask.php','',0,'1min','2007-10-01',NULL,0,'system');
  1379 +(11,'Bulk Download Queue','bin/ajaxtasks/downloadTask.php','',0,'1min','2007-10-01',NULL,0,'system'),
  1380 +(12,'Call Home','bin/system_info.php','',0,'daily','2009-10-01',NULL,0,'system');
1380 1381  
1381 1382 /*!40000 ALTER TABLE `scheduler_tasks` ENABLE KEYS */;
1382 1383 UNLOCK TABLES;
... ... @@ -1767,7 +1768,9 @@ INSERT INTO `upgrades` VALUES
1767 1768 (225,'upgrade*3.6.3*99*upgrade3.6.3','Upgrade from version 3.6.2 to 3.6.3','2009-06-01 00:00:00',1,'upgrade*3.6.3*99*upgrade3.6.3'),
1768 1769 (226,'sql*3.7.0*0*3.7.0/plugins_admin.sql','Database upgrade to version 3.7.0: Plugins admin','2009-09-01 00:00:00',1,'upgrade*3.7.0*99*upgrade3.7.0'),
1769 1770 (227,'sql*3.7.0*0*3.7.0/config_settings.sql','Database upgrade to version 3.7.0: Config settings','2009-09-01 00:00:00',1,'upgrade*3.7.0*99*upgrade3.7.0'),
1770   -(228,'upgrade*3.7.0*99*upgrade3.7.0','Upgrade from version 3.6.3 to 3.7.0','2009-09-01 00:00:00',1,'upgrade*3.7.0*99*upgrade3.7.0');
  1771 +(228,'sql*3.7.0*0*3.7.0/plugin_helper.sql','Database upgrade to version 3.7.0: Plugin helper','2009-09-01 00:00:00',1,'upgrade*3.7.0*99*upgrade3.7.0'),
  1772 +(229,'sql*3.7.0*0*3.7.0/call_home_task.sql','Database upgrade to version 3.7.0: Call home task','2009-09-01 00:00:00',1,'upgrade*3.7.0*99*upgrade3.7.0'),
  1773 +(230,'upgrade*3.7.0*99*upgrade3.7.0','Upgrade from version 3.6.3 to 3.7.0','2009-09-01 00:00:00',1,'upgrade*3.7.0*99*upgrade3.7.0');
1771 1774 /*!40000 ALTER TABLE `upgrades` ENABLE KEYS */;
1772 1775 UNLOCK TABLES;
1773 1776  
... ...