Merge "MysqlUpdater::doLanguageLinksLengthSync(): Increase grepability of filenames"

This commit is contained in:
jenkins-bot 2021-02-18 06:25:44 +00:00 committed by Gerrit Code Review
commit 1061450b70

View file

@ -987,9 +987,9 @@ class MysqlUpdater extends DatabaseUpdater {
protected function doLanguageLinksLengthSync() {
$sync = [
[ 'table' => 'l10n_cache', 'field' => 'lc_lang' ],
[ 'table' => 'langlinks', 'field' => 'll_lang' ],
[ 'table' => 'sites', 'field' => 'site_language' ],
[ 'table' => 'l10n_cache', 'field' => 'lc_lang', 'file' => 'patch-l10n_cache-lc_lang-35.sql' ],
[ 'table' => 'langlinks', 'field' => 'll_lang', 'file' => 'patch-langlinks-ll_lang-35.sql' ],
[ 'table' => 'sites', 'field' => 'site_language', 'file' => 'patch-sites-site_language-35.sql' ],
];
foreach ( $sync as $s ) {
@ -1000,7 +1000,7 @@ class MysqlUpdater extends DatabaseUpdater {
if ( $row && $row->Type !== "varbinary(35)" ) {
$this->applyPatch(
"patch-{$s['table']}-$field-35.sql",
$s['file'],
false,
"Updating length of $field in $table"
);