[Vtigercrm-commits] [vtiger-commits] r10973 - /vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Wed May 23 02:21:52 EDT 2007


Author: richie
Date: Wed May 23 00:21:44 2007
New Revision: 10973

Log:
* Fixed the issues in vtiger_industry table which cause order changing when we edit the picklist, Fixed #3914

Modified:
    vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php

Modified: vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php (original)
+++ vtigercrm/branches/5.0.3/modules/Migration/DBChanges/503rc2_to_503.php Wed May 23 00:21:44 2007
@@ -317,6 +317,13 @@
 //Change Event Status values Planned, Held, Not Held as non editable
 ExecuteQuery("update vtiger_eventstatus set presence=0 where eventstatus in ('Planned','Held','Not Held')");
 
+//If engine is MyISAM then order is changing regularly so we have to change the engine to InnoDB
+ExecuteQuery("alter table vtiger_industry engine=InnoDB");
+ExecuteQuery("alter table vtiger_industry modify column industry varchar(200) NOT NULL");
+$adb->query("alter table vtiger_industry drop index Industry_UK0");
+$adb->query("alter table vtiger_industry add UNIQUE index industry_industry_idx(industry)");
+
+
 
 ExecuteQuery("CREATE TABLE vtiger_version (id int(11) NOT NULL auto_increment, old_version varchar(30) default NULL, current_version varchar(30) default NULL, PRIMARY KEY  (id) ) ENGINE=InnoDB DEFAULT CHARSET=latin1");
 





More information about the vtigercrm-commits mailing list