Skip to content
Snippets Groups Projects
Commit e7718817 authored by Uma's avatar Uma
Browse files

Updating packages during migration is generalized, instead of individual script level

parent 0344bd5c
No related branches found
No related tags found
No related merge requests found
......@@ -18,7 +18,4 @@ if (defined('VTIGER_UPGRADE')) {
if(!in_array($columnName,$columns)) {
$db->pquery('ALTER TABLE vtiger_attachments ADD COLUMN storedname varchar(255) NULL AFTER path', array());
}
//Update existing package modules
Install_Utils_Model::installModules();
}
......@@ -297,7 +297,4 @@ if (defined('VTIGER_UPGRADE')) {
$db->pquery('ALTER TABLE vtiger_calendar_default_activitytypes ADD COLUMN conditions VARCHAR(255) DEFAULT ""', array());
echo 'Conditions column in vtiger_calendar_default_activitytypes updated';
//Update existing package modules
Install_Utils_Model::installModules();
}
\ No newline at end of file
......@@ -129,6 +129,19 @@ class Migration_Index_View extends Vtiger_View_Controller {
echo "<table class='config-table'><tr><th><span><b><font color='red'> There is no Database Changes from ".$migrateVersions[$i]." ==> ".$migrateVersions[$i+1]."</font></b></span></th></tr></table>";
}
}
//During migration process we need to upgrade the package changes
if(defined('VTIGER_UPGRADE')) {
echo "<table class='config-table'><tr><th><span><b><font color='red'> Upgrading Modules -- Starts. </font></b></span></th></tr></table>";
echo "<table class='config-table'>";
//Update existing package modules
Install_Utils_Model::installModules();
echo "<table class='config-table'><tr><th><span><b><font color='red'>Upgrading Modules -- Ends.</font></b></span></th></tr></table>";
}
//update vtiger version in db
$migrationModuleModel->updateVtigerVersion();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment