diff --git a/modules/Migration/schema/650_to_660.php b/modules/Migration/schema/650_to_660.php index 67c73f52ad32e29f404952933688a1865ee38549..5102dc71c2bb3bc3a46579f6e37a8d7847096aab 100644 --- a/modules/Migration/schema/650_to_660.php +++ b/modules/Migration/schema/650_to_660.php @@ -11,5 +11,9 @@ if(defined('VTIGER_UPGRADE')) { global $adb; +// Migration for - #117 - Convert lead field mapping NULL values and redundant rows +$phoneFieldId = getFieldid(getTabid('Leads'), 'phone'); +$db->pquery('UPDATE vtiger_convertleadmapping SET editable=? WHERE leadfid=?', array(1, $phoneFieldId)); + } diff --git a/run-migration-script.php b/run-migration-script.php deleted file mode 100644 index 607cb506e7b93714d78701dcf8c64de1fafd4638..0000000000000000000000000000000000000000 --- a/run-migration-script.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php -/*+*********************************************************************************** - * The contents of this file are subject to the vtiger CRM Public License Version 1.0 - * ("License"); You may not use this file except in compliance with the License - * The Original Code is: vtiger CRM Open Source - * The Initial Developer of the Original Code is vtiger. - * Portions created by vtiger are Copyright (C) vtiger. - * All Rights Reserved. - *************************************************************************************/ - -//migration script started -$db = PearDatabase::getInstance(); -$phoneFieldId = getFieldid(getTabid('Leads'), 'phone'); -$db->pquery('UPDATE vtiger_convertleadmapping SET editable=? WHERE leadfid=?', array(1, $phoneFieldId)); \ No newline at end of file