Skip to content
Snippets Groups Projects
Commit 8530e563 authored by Satish's avatar Satish
Browse files

#435 - vt7 dev release - Error in Migration script 660_to_700.php

parent 6aabc55d
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
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