Index: branches/5.2.x/core/install/upgrades.php =================================================================== diff -u -N -r16513 -r16634 --- branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 16513) +++ branches/5.2.x/core/install/upgrades.php (.../upgrades.php) (revision 16634) @@ -1,6 +1,6 @@ Application->recallObject('kMultiLanguageHelper'); + $ml_helper->createFields('page-revision'); + + /** @var PageHelper $page_helper */ + $page_helper = $this->Application->recallObject('PageHelper'); + $table_name = TABLE_PREFIX . 'PageRevisions'; + $sql = 'SELECT RevisionId + FROM ' . $table_name; + $ids = $this->Conn->GetColIterator($sql); + + foreach ( $ids as $id ) { + $this->Conn->doUpdate($page_helper->getRevisionContent($id), $table_name, 'RevisionId = ' . $id); + } + } + + /** * Deletes folders, containing thumbnails recursively. * * @param string $folder Folder.