From 8530e5632e04334a39ea04ef43039679484b8a65 Mon Sep 17 00:00:00 2001 From: satish <satish.dvnk@vtiger.com> Date: Fri, 21 Apr 2017 10:42:35 +0530 Subject: [PATCH] #435 - vt7 dev release - Error in Migration script 660_to_700.php --- modules/Migration/schema/660_to_700.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/Migration/schema/660_to_700.php b/modules/Migration/schema/660_to_700.php index 01234dcae..38d72b3b3 100644 --- a/modules/Migration/schema/660_to_700.php +++ b/modules/Migration/schema/660_to_700.php @@ -1411,8 +1411,10 @@ if(defined('VTIGER_UPGRADE')) { //Workflows $columns = $db->getColumnNames('com_vtiger_workflows'); if (in_array('status', $columns)) { - $db->pquery('ALTER TABLE com_vtiger_workflows MODIFY COLUMN status INT(11) DEFAULT 1', array()); + $db->pquery('ALTER TABLE com_vtiger_workflows MODIFY COLUMN status TINYINT DEFAULT 1', array()); $db->pquery('UPDATE com_vtiger_workflows SET status=? WHERE status IS NULL', array(1)); + } else { + $db->pquery('ALTER TABLE com_vtiger_workflows ADD COLUMN status TINYINT DEFAULT 1', array()); } if (!in_array('workflowname', $columns)) { -- GitLab