Index: trunk/phase3/includes/installer/MysqlUpdater.php |
— | — | @@ -173,6 +173,7 @@ |
174 | 174 | array( 'addTable', 'module_deps', 'patch-module_deps.sql' ), |
175 | 175 | array( 'dropIndex', 'archive', 'ar_page_revid', 'patch-archive_kill_ar_page_revid.sql' ), |
176 | 176 | array( 'addIndex', 'archive', 'ar_revid', 'patch-archive_ar_revid.sql' ), |
| 177 | + array( 'doLangLinksLengthUpdate' ), |
177 | 178 | ); |
178 | 179 | } |
179 | 180 | |
— | — | @@ -813,4 +814,18 @@ |
814 | 815 | $this->applyPatch( 'patch-categorylinks-better-collation2.sql' ); |
815 | 816 | $this->output( "done.\n" ); |
816 | 817 | } |
| 818 | + |
| 819 | + protected function doLangLinksLengthUpdate() { |
| 820 | + $langlinks = $this->db->tableName( 'langlinks' ); |
| 821 | + $res = $this->db->query( "SHOW COLUMNS FROM $langlinks LIKE 'll_lang'" ); |
| 822 | + $row = $this->db->fetchObject( $res ); |
| 823 | + |
| 824 | + if ( $row && $row->Type == "varbinary(210)" ) { |
| 825 | + $this->output( 'Updating length of ll_lang in langlinks...' ); |
| 826 | + $this->applyPatch( 'patch-langlinks-ll_lang-20.sql' ); |
| 827 | + $this->output( "done.\n" ); |
| 828 | + } else { |
| 829 | + $this->output( "...ll_lang is up-to-date.\n" ); |
| 830 | + } |
| 831 | + } |
817 | 832 | } |