Adding logs

skala
Julio Montoya 12 years ago
parent 3fe0865b3f
commit 996a0ee752
  1. 4
      main/install/index.php
  2. 4
      main/install/update-db-1.8.8-1.9.0.inc.php

@ -777,7 +777,9 @@ if (@$_POST['step2']) {
} else { } else {
$singleDbForm = isset($_configuration['single_database']) ? $_configuration['single_database'] : false; $singleDbForm = isset($_configuration['single_database']) ? $_configuration['single_database'] : false;
} }
Log::notice("singledbForm: '$singleDbForm'");
Database::query("SET storage_engine = MYISAM;"); Database::query("SET storage_engine = MYISAM;");
if (version_compare($my_old_version, '1.8.7', '>=')) { if (version_compare($my_old_version, '1.8.7', '>=')) {

@ -34,7 +34,7 @@ if (defined('SYSTEM_INSTALLATION')) {
} }
$_configuration['db_glue'] = get_config_param('dbGlu'); $_configuration['db_glue'] = get_config_param('dbGlu');
if ($singleDbForm) { if ($singleDbForm) {
$_configuration['table_prefix'] = get_config_param('courseTablePrefix'); $_configuration['table_prefix'] = get_config_param('courseTablePrefix');
$_configuration['main_database'] = get_config_param('mainDbName'); $_configuration['main_database'] = get_config_param('mainDbName');
@ -305,6 +305,8 @@ if (defined('SYSTEM_INSTALLATION')) {
if ($singleDbForm) { if ($singleDbForm) {
$prefix = get_config_param('table_prefix'); $prefix = get_config_param('table_prefix');
} }
Log::notice("Database prefix: '$prefix'");
// Get the courses databases queries list (c_q_list) // Get the courses databases queries list (c_q_list)
$c_q_list = get_sql_file_contents('migrate-db-'.$old_file_version.'-'.$new_file_version.'-pre.sql', 'course'); $c_q_list = get_sql_file_contents('migrate-db-'.$old_file_version.'-'.$new_file_version.'-pre.sql', 'course');

Loading…
Cancel
Save