[Vtigercrm-commits] [vtiger-commits] r7120 - /vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Thu Jun 15 06:36:36 EDT 2006
Author: saraj
Date: Thu Jun 15 04:36:33 2006
New Revision: 7120
Log:
* Added queries to modify the wordtemplates table when the user migrates from 4.2 Patch 2 instead of 4.2.3
Modified:
vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php
Modified: vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php
==============================================================================
--- vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php (original)
+++ vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php Thu Jun 15 04:36:33 2006
@@ -17,6 +17,20 @@
global $success_query_array, $failure_query_array;
$conn->println("Database Modifications for 4.2 Patch2 ==> 5.0(Alpha) Dev 3 Starts here.");
+
+
+
+//These changes have been made in 4.2.3. The following queries have been included who has run the migration from 4.2 Patch2
+$wordtemplate_query1 = "alter table wordtemplates DROP PRIMARY KEY";
+Execute($wordtemplate_query1);
+
+$wordtemplate_query2 = "alter table wordtemplates DROP templateid";//this will fail if 4.2 Patch 2.
+$conn->query($wordtemplate_query2);
+
+$wordtemplate_query3 = "alter table wordtemplates add column templateid integer(19) unsigned auto_increment primary key FIRST";
+Execute($wordtemplate_query3);
+//upto this added to modify the wordtemplates table which will be in the case of migrate from 4.2 Path2.
+
/****************** 5.0(Alpha) dev version 1 Database changes -- Starts*********************/
More information about the vtigercrm-commits
mailing list