diff --git a/tests/migrate/migrate.php b/tests/migrate/migrate.php index 1e668a34a6..8f7d606f5f 100644 --- a/tests/migrate/migrate.php +++ b/tests/migrate/migrate.php @@ -1,5 +1,9 @@ migrate($matches); - //Getting transactions from MSSQL (via webservices) + if ($action_type == 'migration') { + //Default migration from MSSQL to Chamilo MySQL + $m->migrate($matches); + } else { + //Getting transactions from MSSQL (via webservices) + + if (isset($matches['web_service_calls']['filename'])) { + require_once $matches['web_service_calls']['filename']; + } + //This functions truncates the transaction lists! + //$m->test_transactions($matches['web_service_calls']); - if (isset($matches['web_service_calls']['filename'])) { - require_once $matches['web_service_calls']['filename']; - } - //This functions truncates the transaction lists! - //$m->test_transactions($matches['web_service_calls']); - - //$m->search_transactions($matches['web_service_calls']); + $m->search_transactions($matches['web_service_calls']); - //Load transactions saved before - //$m->load_transactions($matches); + //Load transactions saved before + $m->load_transactions($matches); - //print_r($m->errors_stack); + //print_r($m->errors_stack); + } //echo "OK so far\n"; echo "\n ---- End loading server----- \n"; } else {