Modified Files:
Tag: testlink_1_9
configCheck.php
Log Message:
BUGID 4186 - checkSchemaVersion() moved last_db_version to const.inc.php
Index: configCheck.php
===================================================================
RCS file: /cvsroot/testlink/testlink/lib/functions/configCheck.php,v
retrieving revision 1.55
retrieving revision 1.55.4.1
diff -C2 -d -r1.55 -r1.55.4.1
*** configCheck.php 24 Jun 2010 17:25:53 -0000 1.55
--- configCheck.php 26 Jan 2011 09:01:58 -0000 1.55.4.1
***************
*** 16,19 ****
--- 16,21 ----
* @internal Revisions:
*
+ * 20110126 - Julian - BUGID 4186 - checkSchemaVersion() moved last_db_version to const.inc.php
+ * - better log message for DB 1.3 to DB 1.4 upgrade
* 20100617 - franciscom - domxml is not needed anymore
* 20090713 - franciscom - tested is_writable() on windows with PHP 5.
***************
*** 422,426 ****
function checkSchemaVersion(&$db)
{
! $last_version = 'DB 1.3'; // havlatm: updated for 1.9
$db_version_table= DB_TABLE_PREFIX . 'db_version';
--- 424,428 ----
function checkSchemaVersion(&$db)
{
! $last_version = TL_LAST_DB_VERSION; // BUGID 4186: moved last db version to const.inc.php
$db_version_table= DB_TABLE_PREFIX . 'db_version';
***************
*** 434,437 ****
--- 436,442 ----
$myrow = $db->fetch_array($res);
$msg = "";
+ $upgrade_msg = "You need to upgrade your Testlink Database to {$last_version} - <br>" .
+ '<a href="SCHEMA_CHANGES" style="color: white"> click here to see the Schema changes </a><br>' .
+ '<a href="./install/index.php" style="color: white">click here access install and upgrade page </a><br>';
switch (trim($myrow['version']))
{
***************
*** 446,454 ****
case 'DB 1.1':
case 'DB 1.2':
! $msg = "You need to upgrade your Testlink Database to {$last_version} - <br>" .
! '<a href="SCHEMA_CHANGES" style="color: white"> click here to see the Schema changes </a><br>' .
! '<a href="./install/index.php" style="color: white">click here access install and upgrade page </a><br>';
break;
case $last_version:
break;
--- 451,466 ----
case 'DB 1.1':
case 'DB 1.2':
! $msg = $upgrade_msg;
break;
+ case 'DB 1.3':
+ // DB 1.3 to DB 1.4 requires manual steps
+ if ($last_version == 'DB 1.4') {
+ $msg = "Manual upgrade of your DB scheme necessary (1.9.0 -> 1.9.1) - Read README file!";
+ } else {
+ $msg = $upgrade_msg;
+ }
+ break;
+
case $last_version:
break;