[Vtigercrm-commits] [vtiger-commits] r10064 - in /vtigercrm/branches/5.0.3: modules/Users/DefaultDataPopulator.php schema/DatabaseSchema.xml
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Tue Jan 16 04:31:00 EST 2007
Author: richie
Date: Tue Jan 16 02:30:54 2007
New Revision: 10064
Log:
* Added the version table
Modified:
vtigercrm/branches/5.0.3/modules/Users/DefaultDataPopulator.php
vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml
Modified: vtigercrm/branches/5.0.3/modules/Users/DefaultDataPopulator.php
==============================================================================
--- vtigercrm/branches/5.0.3/modules/Users/DefaultDataPopulator.php (original)
+++ vtigercrm/branches/5.0.3/modules/Users/DefaultDataPopulator.php Tue Jan 16 02:30:54 2007
@@ -2192,7 +2192,10 @@
$this->db->query("alter table vtiger_inventoryshippingrel add column shtax$shsalesid decimal(7,3) default NULL");
$this->db->query("alter table vtiger_inventoryshippingrel add column shtax$shserviceid decimal(7,3) default NULL");
-
+ //version file is included here because without including this file version cannot be get
+ include('vtigerversion.php');
+ $this->db->query("insert into vtiger_version values('','".$vtiger_current_version."','".$vtiger_current_version."')");
+
}
}
?>
Modified: vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml
==============================================================================
--- vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml (original)
+++ vtigercrm/branches/5.0.3/schema/DatabaseSchema.xml Tue Jan 16 02:30:54 2007
@@ -6150,6 +6150,15 @@
</data>
</table>
+ <table name="vtiger_version">
+ <field name="id" type="I" size="11">
+ <key />
+ <autoincrement />
+ </field>
+ <field name="old_version" type="C" size="30" />
+ <field name="current_version" type="C" size="30" />
+ </table>
+
</schema>
More information about the vtigercrm-commits
mailing list