[Vtigercrm-commits] [vtiger-commits] r9751 - in /vtigercrm/branches/5.0.2: Smarty/templates/MigrationStep1.tpl modules/Migration/502DBChanges.php modules/Migration/MigrationStep1.php

vtigercrm-commits at vtiger.fosslabs.com vtigercrm-commits at vtiger.fosslabs.com
Mon Oct 30 09:58:38 EST 2006


Author: richie
Date: Mon Oct 30 07:58:31 2006
New Revision: 9751

Log:
* Modified to provide the link to apply the Database changes betseen 5.0.0/5.0.1 to 5.0.2

Modified:
    vtigercrm/branches/5.0.2/Smarty/templates/MigrationStep1.tpl
    vtigercrm/branches/5.0.2/modules/Migration/502DBChanges.php
    vtigercrm/branches/5.0.2/modules/Migration/MigrationStep1.php

Modified: vtigercrm/branches/5.0.2/Smarty/templates/MigrationStep1.tpl
==============================================================================
--- vtigercrm/branches/5.0.2/Smarty/templates/MigrationStep1.tpl (original)
+++ vtigercrm/branches/5.0.2/Smarty/templates/MigrationStep1.tpl Mon Oct 30 07:58:31 2006
@@ -25,6 +25,12 @@
    <tr>
 	<td class="showPanelBg" valign="top" width="95%"  style="padding-left:20px; "><br />
 		<span class="lvtHeaderText"> {$MOD.LBL_SETTINGS} &gt; {$MOD.LBL_UPGRADE_VTIGER}</span>
+		<span class="lvtHeaderText" align="right">
+			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
+			{if $502_PATCH eq 'apply'}
+				<a style="color:red;" href="index.php?module=Migration&action=502DBChanges&parenttab=Settings">Click here to apply the 5.0.2 Database changes from 5.0.0/5.0.1</a>
+			{/if}
+		</span>
 		<hr noshade="noshade" size="1" />
 	</td>
 	<td width="5%" class="showPanelBg">&nbsp;</td>

Modified: vtigercrm/branches/5.0.2/modules/Migration/502DBChanges.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Migration/502DBChanges.php (original)
+++ vtigercrm/branches/5.0.2/modules/Migration/502DBChanges.php Mon Oct 30 07:58:31 2006
@@ -61,7 +61,7 @@
 }
 
 
-
+echo "<br>&nbsp; 5.0.2 Database changes has been done.<br>";
 
 
 ?>

Modified: vtigercrm/branches/5.0.2/modules/Migration/MigrationStep1.php
==============================================================================
--- vtigercrm/branches/5.0.2/modules/Migration/MigrationStep1.php (original)
+++ vtigercrm/branches/5.0.2/modules/Migration/MigrationStep1.php Mon Oct 30 07:58:31 2006
@@ -129,6 +129,11 @@
 	}
 }
 
+//For 5.0.2 we have added this table. After 5.0.2 we have to remove this and provide the migration in some other way
+$res = $adb->query("show create table vtiger_entityname");
+if(!$res)
+	$smarty->assign("502_PATCH","apply");
+
 $smarty->display("MigrationStep1.tpl");
 
 





More information about the vtigercrm-commits mailing list