[Vtigercrm-commits] [vtiger-commits] r6766 - /vtigercrm/trunk/modules/Migration/ModifyDatabase/42P2_to_50Alpha.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue May 30 11:35:19 EDT 2006
Author: don
Date: Tue May 30 09:35:13 2006
New Revision: 6766
Log:
Added migration support for profile2utility table
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 Tue May 30 09:35:13 2006
@@ -2782,8 +2782,20 @@
-
-
+//Inserting into profile2utility table
+ $sql_sec="select profileid from profile";
+ $result_sec=$conn->query($sql_sec);
+ $num_rows=$conn->num_rows($result_sec);
+ for($i=0;$i<$num_row;$i++)
+ {
+ $prof_id=$conn->query_result($result_sec,$i,'profileid');
+ $sql1_sec="insert into profile2utility values(".$prof_id.",13,8,0)";
+ Execute($sql1_sec);
+
+ $sql2_sec="insert into profile2utility values(".$prof_id.",7,9,0)";
+ Execute($sql2_sec);
+
+ }
More information about the vtigercrm-commits
mailing list