Index: branches/5.2.x/core/install/upgrades.php =================================================================== diff -u -N -r15225 -r15373 --- branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 15225) +++ branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 15373) @@ -1,6 +1,6 @@ Application->recallObject('kMultiLanguageHelper'); + /* @var $ml_helper kMultiLanguageHelper */ + + $ml_helper->createFields('promo-block'); + + $table_name = $this->Application->getUnitOption('promo-block', 'TableName'); + $table_structure = $this->Conn->Query('DESCRIBE ' . $table_name, 'Field'); + + if ( isset($table_structure['Title']) ) { + $sql = 'UPDATE ' . $table_name . ' + SET l' . $this->Application->GetDefaultLanguageId() . '_Title = Title'; + $this->Conn->Query($sql); + + $sql = 'ALTER TABLE ' . $table_name . ' DROP Title'; + $this->Conn->Query($sql); + } + } } \ No newline at end of file