|
|
|
@ -682,6 +682,9 @@ if (@$_POST['step2']) { |
|
|
|
|
|
|
|
|
|
error_log('Starting migration process from '.$my_old_version.' ('.date('Y-m-d H:i:s').')'); |
|
|
|
|
|
|
|
|
|
echo '<a class="btn btn-default" href="javascript:void(0)" id="details_button">'.get_lang('Details').'</a><br />'; |
|
|
|
|
echo '<div id="details" style="display:none">'; |
|
|
|
|
|
|
|
|
|
switch ($my_old_version) { |
|
|
|
|
case '1.9.0': |
|
|
|
|
case '1.9.2': |
|
|
|
@ -705,15 +708,12 @@ if (@$_POST['step2']) { |
|
|
|
|
Database::query("ALTER TABLE c_document MODIFY COLUMN filetype char(10) NOT NULL default 'file'"); |
|
|
|
|
Database::query("ALTER TABLE c_student_publication MODIFY COLUMN filetype char(10) NOT NULL default 'file'"); |
|
|
|
|
|
|
|
|
|
echo '<a class="btn btn-default" href="javascript:void(0)" id="details_button">'.get_lang('Details').'</a><br />'; |
|
|
|
|
echo '<div id="details" style="display:none">'; |
|
|
|
|
// Migrate using the migration files located in: |
|
|
|
|
// src/Chamilo/CoreBundle/Migrations/Schema/V110 |
|
|
|
|
$result = migrate( |
|
|
|
|
110, |
|
|
|
|
$manager |
|
|
|
|
); |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
if ($result) { |
|
|
|
|
error_log('Migrations files were executed.'); |
|
|
|
@ -757,15 +757,12 @@ if (@$_POST['step2']) { |
|
|
|
|
case '1.10.4': |
|
|
|
|
// no break |
|
|
|
|
case '1.10.6': |
|
|
|
|
echo '<a class="btn btn-default" href="javascript:void(0)" id="details_button">'.get_lang('Details').'</a><br />'; |
|
|
|
|
echo '<div id="details" style="display:none">'; |
|
|
|
|
// Migrate using the migration files located in: |
|
|
|
|
// src/Chamilo/CoreBundle/Migrations/Schema/V111 |
|
|
|
|
$result = migrate( |
|
|
|
|
111, |
|
|
|
|
$manager |
|
|
|
|
); |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
if ($result) { |
|
|
|
|
error_log('Migrations files were executed.'); |
|
|
|
@ -778,6 +775,7 @@ if (@$_POST['step2']) { |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
echo '</div>'; |
|
|
|
|
} else { |
|
|
|
|
set_file_folder_permissions(); |
|
|
|
|
|
|
|
|
|