[Vtigercrm-commits] [vtiger-commits] r9948 - in /vtigercrm/branches/4.2: install/5createTables.inc.php modules/Users/Authenticate.php schema/DatabaseSchema.xml update.php updates/ updates/vtiger/ updates/vtiger/9816.php vtigerversion.php
vtigercrm-commits at vtiger.fosslabs.com
vtigercrm-commits at vtiger.fosslabs.com
Fri Dec 8 01:56:16 EST 2006
Author: allanbush
Date: Thu Dec 7 23:56:10 2006
New Revision: 9948
Log:
Added SVN revision controlled incremental database update system. Refs #2720.
Added:
vtigercrm/branches/4.2/update.php
vtigercrm/branches/4.2/updates/
vtigercrm/branches/4.2/updates/vtiger/
vtigercrm/branches/4.2/updates/vtiger/9816.php
Modified:
vtigercrm/branches/4.2/install/5createTables.inc.php
vtigercrm/branches/4.2/modules/Users/Authenticate.php
vtigercrm/branches/4.2/schema/DatabaseSchema.xml
vtigercrm/branches/4.2/vtigerversion.php
Modified: vtigercrm/branches/4.2/install/5createTables.inc.php
==============================================================================
--- vtigercrm/branches/4.2/install/5createTables.inc.php (original)
+++ vtigercrm/branches/4.2/install/5createTables.inc.php Thu Dec 7 23:56:10 2006
@@ -285,6 +285,14 @@
}
eecho ("Done.");
+// insert database version control
+include 'vtigerversion.php';
+foreach($svn_revision as $project=>$version) {
+ $sql = "INSERT INTO vtigerversion (project, revision)
+ VALUES (".$db->quote($project).", ".$version.")";
+ $db->query($sql);
+}
+
/*
if ($new_tables)
create_default_users();
Modified: vtigercrm/branches/4.2/modules/Users/Authenticate.php
==============================================================================
--- vtigercrm/branches/4.2/modules/Users/Authenticate.php (original)
+++ vtigercrm/branches/4.2/modules/Users/Authenticate.php Thu Dec 7 23:56:10 2006
@@ -33,6 +33,8 @@
// Add in defensive code here.
$focus->user_name = to_html($_REQUEST['user_name']);
$user_password = $_REQUEST['user_password'];
+
+include 'update.php';
$focus->load_user($user_password);
Modified: vtigercrm/branches/4.2/schema/DatabaseSchema.xml
==============================================================================
--- vtigercrm/branches/4.2/schema/DatabaseSchema.xml (original)
+++ vtigercrm/branches/4.2/schema/DatabaseSchema.xml Thu Dec 7 23:56:10 2006
@@ -3813,4 +3813,13 @@
<opt platform="mysql">Type=InnoDB</opt>
</table>
+ <table name="vtigerversion">
+ <field name="id" type="I" size="19">
+ <key />
+ <autoincrement />
+ </field>
+ <field name="project" type="C" size="50" />
+ <field name="revision" type="I" size="19" />
+ </table>
+
</schema>
Modified: vtigercrm/branches/4.2/vtigerversion.php
==============================================================================
--- vtigercrm/branches/4.2/vtigerversion.php (original)
+++ vtigercrm/branches/4.2/vtigerversion.php Thu Dec 7 23:56:10 2006
@@ -12,5 +12,6 @@
$patch_version = '';
$modified_database = '';
$vtiger_version = '4.2.4';
+$svn_revision['vtiger'] = 9947;
$release_date = '1 June 2006';
?>
More information about the vtigercrm-commits
mailing list