diff --git a/modules/Migration/schema/810_to_820.php b/modules/Migration/schema/810_to_820.php index d0315444bb21edc529a41c26dcc628b7deb84fc0..25e10335cb399608746624edac431f414011e511 100644 --- a/modules/Migration/schema/810_to_820.php +++ b/modules/Migration/schema/810_to_820.php @@ -41,4 +41,7 @@ if (defined('VTIGER_UPGRADE')) { $db->pquery('ALTER TABLE vtiger_purchaseorder MODIFY s_h_percent DECIMAL(25,3)', array()); $db->pquery('ALTER TABLE vtiger_quotes MODIFY s_h_percent DECIMAL(25,3)', array()); + // Make hidden mandatory fields optional + $db->pquery("UPDATE vtiger_field SET typeofdata = replace(typeofdata,'~M','~O') where presence =1 and typeofdata like '%~M%'", array()); + }