Internal: Disable query to update platform language with old iso code

It affects to Version20240122221400 migration for sublanguages
pull/5364/head
Angel Fernando Quiroz Campos 8 months ago committed by GitHub
parent 163c387198
commit fb02a112da
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      src/CoreBundle/Migrations/Schema/V200/Version20.php

@ -180,7 +180,7 @@ class Version20 extends AbstractMigrationChamilo
$this->addSql('UPDATE course SET course_language = (SELECT isocode FROM language WHERE english_name = course_language)');
$this->addSql('UPDATE sys_announcement SET lang = (SELECT isocode FROM language WHERE english_name = lang);');
$this->addSql("UPDATE settings_current SET selected_value = (SELECT isocode FROM language WHERE english_name = selected_value) WHERE variable = 'platformLanguage'");
//$this->addSql("UPDATE settings_current SET selected_value = (SELECT isocode FROM language WHERE english_name = selected_value) WHERE variable = 'platformLanguage'");
$table = $schema->getTable('fos_group');
if (false === $table->hasColumn('name')) {

Loading…
Cancel
Save