Browse Source

[svn r12999] Fixed a bug in migration from 1.6 to 1.8.0 with single DB where if the single DB mode was used from some time and there were actually 3 databases (main, scorm and stats), the scorm and stats databases would not be found. This was a blocking bug. The upgrade script still needs some improvement to enable a full 1.6.x to 1.8.x migration.

Yannick Warnier 17 years ago
parent
commit
dd74af6074
1 changed files with 3 additions and 3 deletions
  1. 3 3
      main/install/update-db-1.6.x-1.8.0.inc.php

+ 3 - 3
main/install/update-db-1.6.x-1.8.0.inc.php

@@ -131,9 +131,9 @@ if (defined('DOKEOS_INSTALL') || defined('DOKEOS_COURSE_UPDATE'))
 	{
 		if ($singleDbForm)
 		{
-			$dbStatsForm = $dbNameForm;
-			$dbScormForm = $dbNameForm;
-			$dbUserForm = $dbNameForm;
+			if(empty($dbStatsForm)) $dbStatsForm = $dbNameForm;
+			if(empty($dbScormForm)) $dbScormForm = $dbNameForm;
+			if(empty($dbUserForm))  $dbUserForm = $dbNameForm;
 		}
 		/**
 		 * Update the databases "pre" migration