X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdb%2FMWLBFactory.php;h=63b320e343ac923999dc81a960d8567e2c74910e;hb=5155abe0e6ab6589d4104a221df0a0b2c5142c16;hp=18030090dfd2140e37f1360f8e3876deb2bd1ab6;hpb=d8cc9ef907fbb76838f2726989aa642340c7eb38;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/db/MWLBFactory.php b/includes/db/MWLBFactory.php index 18030090df..63b320e343 100644 --- a/includes/db/MWLBFactory.php +++ b/includes/db/MWLBFactory.php @@ -23,7 +23,6 @@ use MediaWiki\Config\ServiceOptions; use MediaWiki\Logger\LoggerFactory; -use Wikimedia\Rdbms\LBFactory; use Wikimedia\Rdbms\DatabaseDomain; /** @@ -359,35 +358,6 @@ abstract class MWLBFactory { return $class; } - /** - * @param LBFactory $lbFactory - * @param string $dbType 'mysql', 'sqlite', etc. - * @internal For use with service wiring - */ - public static function setSchemaAliases( LBFactory $lbFactory, $dbType ) { - if ( $dbType === 'mysql' ) { - /** - * When SQLite indexes were introduced in r45764, it was noted that - * SQLite requires index names to be unique within the whole database, - * not just within a schema. As discussed in CR r45819, to avoid the - * need for a schema change on existing installations, the indexes - * were implicitly mapped from the new names to the old names. - * - * This mapping can be removed if DB patches are introduced to alter - * the relevant tables in existing installations. Note that because - * this index mapping applies to table creation, even new installations - * of MySQL have the old names (except for installations created during - * a period where this mapping was inappropriately removed, see - * T154872). - */ - $lbFactory->setIndexAliases( [ - 'ar_usertext_timestamp' => 'usertext_timestamp', - 'un_user_id' => 'user_id', - 'un_user_ip' => 'user_ip', - ] ); - } - } - /** * Log a database deprecation warning * @param string $msg Deprecation message