Skip to content
Snippets Groups Projects
Commit cdeb3879 authored by vtigerosm's avatar vtigerosm
Browse files

#435 - Error in Migration script 660_to_700.php

parents 18655c25 bf82681f
No related branches found
No related tags found
No related merge requests found
......@@ -1411,8 +1411,7 @@ 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)', array());
$db->pquery('ALTER TABLE com_vtiger_workflows ALTER COLUMN status SET DEFAULT 1', array());
$db->pquery('ALTER TABLE com_vtiger_workflows MODIFY COLUMN status INT(11) DEFAULT 1', array());
$db->pquery('UPDATE com_vtiger_workflows SET status=? WHERE status IS NULL', array(1));
}
......
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