Proyectos de Subversion Moodle

Rev

Rev 1 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 1 Rev 1441
Línea 74... Línea 74...
74
 * @param moodle_database $sourcedb
74
 * @param moodle_database $sourcedb
75
 * @param moodle_database $targetdb
75
 * @param moodle_database $targetdb
76
 * @param progress_trace $feedback
76
 * @param progress_trace $feedback
77
 * @return void
77
 * @return void
78
 */
78
 */
79
function tool_dbtransfer_transfer_database(moodle_database $sourcedb, moodle_database $targetdb, progress_trace $feedback = null) {
79
function tool_dbtransfer_transfer_database(moodle_database $sourcedb, moodle_database $targetdb, ?progress_trace $feedback = null) {
80
    core_php_time_limit::raise();
80
    core_php_time_limit::raise();
Línea 81... Línea 81...
81
 
81
 
Línea 82... Línea 82...
82
    \core\session\manager::write_close(); // Release session.
82
    \core\session\manager::write_close(); // Release session.
Línea 92... Línea 92...
92
 * @param moodle_database $target
92
 * @param moodle_database $target
93
 * @param progress_trace $feedback
93
 * @param progress_trace $feedback
94
 * @return void
94
 * @return void
95
 * @throws Exception on conversion error
95
 * @throws Exception on conversion error
96
 */
96
 */
97
function tool_dbtransfer_rebuild_target_log_actions(moodle_database $target, progress_trace $feedback = null) {
97
function tool_dbtransfer_rebuild_target_log_actions(moodle_database $target, ?progress_trace $feedback = null) {
98
    global $DB, $CFG;
98
    global $DB, $CFG;
99
    require_once("$CFG->libdir/upgradelib.php");
99
    require_once("$CFG->libdir/upgradelib.php");
Línea 100... Línea 100...
100
 
100
 
Línea 139... Línea 139...
139
            continue;
139
            continue;
140
        }
140
        }
141
        $dbtype = $matches[1];
141
        $dbtype = $matches[1];
142
        $dblibrary = $matches[2];
142
        $dblibrary = $matches[2];
Línea 143... Línea -...
143
 
-
 
144
        if ($dbtype === 'sqlite3') {
-
 
145
            // The sqlite3 driver is not fully working yet and should not be returned.
-
 
146
            continue;
-
 
147
        }
-
 
148
 
143
 
149
        $targetdb = moodle_database::get_driver_instance($dbtype, $dblibrary, false);
144
        $targetdb = moodle_database::get_driver_instance($dbtype, $dblibrary, false);
150
        if ($targetdb->driver_installed() !== true) {
145
        if ($targetdb->driver_installed() !== true) {
151
            continue;
146
            continue;