/** * testUpgradeConnectors * * This method calls upgrade_connectors and checks to make sure we have deleted the custom connectors.php file */ public function testUpgradeConnectors() { upgrade_connectors(); $this->assertTrue(!file_exists($this->file), 'upgrade_connectors did not remove file ' . $this->file); }
upgradeModulesForTeamsets(); logThis(" Finish Building the team_set and team_sets_teams", $path); logThis(" Start modules/Administration/upgradeTeams.php", $path); include 'modules/Administration/upgradeTeams.php'; logThis(" Finish modules/Administration/upgradeTeams.php", $path); if (check_FTS()) { $GLOBALS['db']->full_text_indexing_setup(); } } //bug: 37214 - merge config_si.php settings if available logThis('Begin merge_config_si_settings', $path); merge_config_si_settings(true, '', '', $path); logThis('End merge_config_si_settings', $path); //Upgrade connectors logThis('Begin upgrade_connectors', $path); upgrade_connectors(); logThis('End upgrade_connectors', $path); //Unlink files that have been removed if (function_exists('unlinkUpgradeFiles')) { unlinkUpgradeFiles($sugar_version); } if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) { rebuildSprites(true); } //Run repairUpgradeHistoryTable if (version_compare($sugar_version, '6.5.0', '<') && function_exists('repairUpgradeHistoryTable')) { repairUpgradeHistoryTable(); } /////////////////////////////////////////////////////////////////////////////// //// TAKE OUT TRASH if (empty($errors)) {
logThis(" Finish Building private teams", $path); logThis(" Start Building the team_set and team_sets_teams", $path); upgradeModulesForTeamsets(); logThis(" Finish Building the team_set and team_sets_teams", $path); logThis(" Start modules/Administration/upgradeTeams.php", $path); include 'modules/Administration/upgradeTeams.php'; logThis(" Finish modules/Administration/upgradeTeams.php", $path); if ($sugar_config['dbconfig']['db_type'] == 'mssql') { if (check_FTS()) { $GLOBALS['db']->wakeupFTS(); } } } //Upgrade connectors if (function_exists('upgrade_connectors')) { upgrade_connectors($path); } //also add the cache cleaning here. if (function_exists('deleteCache')) { @deleteCache(); } /////////////////////////////////////////////////////////////////////////////// //// TAKE OUT TRASH if (empty($errors)) { set_upgrade_progress('end', 'in_progress', 'unlinkingfiles', 'in_progress'); logThis('Taking out the trash, unlinking temp files.', $path); unlinkTempFiles(true); removeSilentUpgradeVarsCache(); logThis('Taking out the trash, done.', $path); } ///////////////////////////////////////////////////////////////////////////////