Internal: Migration fixes, add logs WIP

pull/3706/head
Julio Montoya 5 years ago
parent 10f69916e8
commit a242e89461
  1. 6
      public/main/install/index.php
  2. 5
      src/CoreBundle/Migrations/Schema/V200/Version20170627122900.php

@ -631,6 +631,9 @@ if (isset($_POST['step2'])) {
error_log('------------------------------');
error_log('Upgrade 2.0.0 process concluded! ('.date('Y-m-d H:i:s').')');
} else {
error_log('------------------------------');
$start = date('Y-m-d H:i:s');
error_log('Chamilo installation starts: ('.$start.')');
set_file_folder_permissions();
error_log("connectToDatabase as user $dbUsernameForm");
@ -719,6 +722,9 @@ if (isset($_POST['step2'])) {
$installationProfile
);
writeSystemConfigFile(api_get_path(SYMFONY_SYS_PATH).'config/configuration.php');
error_log('Finish installation');
} else {
error_log('ERROR during installation.');
}
}

@ -14,8 +14,11 @@ class Version20170627122900 extends AbstractMigrationChamilo
{
public function up(Schema $schema): void
{
$this->addSql("UPDATE settings_current SET selected_value = 'true' WHERE variable = 'decode_utf8'");
$this->addSql('ALTER TABLE settings_current CHANGE access_url access_url INT DEFAULT NULL');
$this->addSql("UPDATE settings_current SET selected_value = 'true' WHERE variable = 'decode_utf8'");
// Use .env APP_ENV setting to change server type
//$this->addSql("DELETE FROM settings_current WHERE variable = 'server_type'");
$table = $schema->getTable('settings_current');
if (false === $table->hasForeignKey('FK_62F79C3B9436187B')) {

Loading…
Cancel
Save