From 406f183e1df26cc0fa4187df0cd3ed2b1f7007e4 Mon Sep 17 00:00:00 2001 From: satish <satish.dvnk@vtiger.com> Date: Wed, 8 Feb 2017 15:06:45 +0530 Subject: [PATCH] Fixes #437 - Issue with Migration script design 660_to_700.php --- modules/Migration/schema/660_to_700.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/Migration/schema/660_to_700.php b/modules/Migration/schema/660_to_700.php index 1d592c7e2..34e760891 100644 --- a/modules/Migration/schema/660_to_700.php +++ b/modules/Migration/schema/660_to_700.php @@ -473,7 +473,7 @@ if(defined('VTIGER_UPGRADE')) { $commentsResult = $db->pquery('SELECT vtiger_modcomments.modcommentsid FROM vtiger_modcomments LEFT JOIN vtiger_crmentity ON vtiger_crmentity.crmid = vtiger_modcomments.related_to WHERE vtiger_crmentity.setype NOT IN ('.generateQuestionMarks($internalCommentModules).') - OR vtiger_crmentity.setype IS NULL modcommentsid > ? LIMIT 500', array_merge($internalCommentModules, array($lastMaxCRMId))); + OR vtiger_crmentity.setype IS NULL AND modcommentsid > ? LIMIT 500', array_merge($internalCommentModules, array($lastMaxCRMId))); if (!$db->num_rows($result)) { break; } -- GitLab