public function testUnlinkUpgradeFiles610() { $this->assertTrue(file_exists($this->save_file), 'Assert the ' . $this->save_file . ' exists'); unlinkUpgradeFiles('610'); $this->assertFalse(file_exists($this->save_file), 'Assert the ' . $this->save_file . ' no longer exists'); $this->assertTrue(file_exists($this->save_file . '.suback.bak'), 'Assert the ' . $this->save_file . '.suback.bak file exists'); }
//Global search support /* if($_SESSION['current_db_version'] < '620' && function_exists('add_unified_search_to_custom_modules_vardefs')) { logThis('Add global search for custom modules start .', $path); add_unified_search_to_custom_modules_vardefs(); logThis('Add global search for custom modules finished .', $path); } */ //Upgrade system displayed tabs and subpanels if (function_exists('upgradeDisplayedTabsAndSubpanels')) { upgradeDisplayedTabsAndSubpanels($_SESSION['current_db_version']); } //Unlink files that have been removed if (function_exists('unlinkUpgradeFiles')) { unlinkUpgradeFiles($_SESSION['current_db_version']); } if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) { rebuildSprites(true); } require_once 'modules/Administration/upgrade_custom_relationships.php'; upgrade_custom_relationships(); require_once 'modules/UpgradeWizard/uw_utils.php'; /* if($_SESSION['current_db_version'] < '620') { upgradeDateTimeFields($path); upgradeDocumentTypeFields($path); } */ //Update the license
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)) { set_upgrade_progress('end', 'in_progress', 'unlinkingfiles', 'in_progress'); logThis('Taking out the trash, unlinking temp files.', $path); unlinkUWTempFiles(); removeSilentUpgradeVarsCache();
// we need to add templates when either conversion from CE to Pro+, or upgrade of Pro+ flavors from older versions // this needs to be outside of if($ce_to_pro_ent) because it does not cover second case where $ce_to_pro_ent is 'SugarPro' logThis("Starting to add pdf template", $path); addPdfManagerTemplate(); logThis("Finished adding pdf template", $path); //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, $path); } if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) { rebuildSprites(true); } //Patch for bug57431 : Module name isn't updated in portal layout editor updateRenamedModulesLabels(); //setup forecast defualt settings if (version_compare($sugar_version, '6.7.0', '<')) { require_once clean_path($unzip_dir . '/scripts/upgrade_utils.php'); require_once $unzip_dir . '/' . $zip_from_dir . '/modules/Forecasts/ForecastsDefaults.php'; ForecastsDefaults::setupForecastSettings(true, $sugar_version, getUpgradeVersion()); ForecastsDefaults::upgradeColumns(); // do the config update to add the 'support' platform to any config with the category of 'portal' updatePortalConfigToContainPlatform(); }
logThis('End upgrade_connectors', $path); // Enable the InsideView connector by default if ($origVersion < '621' && function_exists('upgradeEnableInsideViewConnector')) { logThis("Looks like we need to enable the InsideView connector\n", $path); upgradeEnableInsideViewConnector($path); } //bug: 36845 - ability to provide global search support for custom modules /* */ //Upgrade system displayed tabs and subpanels if (function_exists('upgradeDisplayedTabsAndSubpanels')) { upgradeDisplayedTabsAndSubpanels($origVersion); } //Unlink files that have been removed if (function_exists('unlinkUpgradeFiles')) { unlinkUpgradeFiles($origVersion); } if (function_exists('rebuildSprites') && function_exists('imagecreatetruecolor')) { rebuildSprites(true); } //Run repairUpgradeHistoryTable if ($origVersion < '650' && function_exists('repairUpgradeHistoryTable')) { repairUpgradeHistoryTable(); } /////////////////////////////////////////////////////////////////////////////// //// TAKE OUT TRASH if (empty($errors)) { set_upgrade_progress('end', 'in_progress', 'unlinkingfiles', 'in_progress'); logThis('Taking out the trash, unlinking temp files.', $path); unlinkUWTempFiles(); removeSilentUpgradeVarsCache();
public function testUnlinkUpgradeFilesPost620() { $this->assertTrue(file_exists($this->studio_file), 'Assert the ' . $this->studio_file . ' exists'); unlinkUpgradeFiles('620'); $this->assertTrue(file_exists($this->studio_file), 'Assert the ' . $this->studio_file . ' still exists (post 620)'); }
public function testUnlinkUpgradeFilesPre614() { $this->assertTrue(file_exists($this->studio_file), 'Assert the ' . $this->studio_file . ' exists'); unlinkUpgradeFiles('610'); $this->assertFalse(file_exists($this->studio_file), 'Assert the ' . $this->studio_file . ' no longer exists'); }