예제 #1
0
}
//unset the logger previously instantiated
if (file_exists('include/SugarLogger/LoggerManager.php')) {
    unset($GLOBALS['log']);
    $GLOBALS['log'] = LoggerManager::getLogger('SugarCRM');
}
//Upgrade connectors
/*
if($_SESSION['current_db_version'] < '610' && function_exists('upgrade_connectors'))
{
   upgrade_connectors($path);
}
*/
// Enable the InsideView connector by default
if ($_SESSION['current_db_version'] < '621' && function_exists('upgradeEnableInsideViewConnector')) {
    upgradeEnableInsideViewConnector();
}
/*
if ($_SESSION['current_db_version'] < '620' && ($sugar_config['dbconfig']['db_type'] == 'mssql' || $sugar_config['dbconfig']['db_type'] == 'oci8'))
{
    repair_long_relationship_names($path);
}
*/
//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);
}
예제 #2
0
    }
}
/*
*/
//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);
// 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);
}