Merge "Correct error handling for exceptions in 'user' module"
authorBartosz Dziewoński <matma.rex@gmail.com>
Thu, 22 Sep 2016 21:14:23 +0000 (21:14 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 22 Sep 2016 21:14:23 +0000 (21:14 +0000)
includes/libs/rdbms/database/Database.php
includes/libs/rdbms/database/DatabaseSqlite.php

index 6f50844..bf3a5f0 100644 (file)
@@ -1964,18 +1964,7 @@ abstract class Database implements IDatabase, LoggerAwareInterface {
         * @return string
         */
        protected function indexName( $index ) {
-               // Backwards-compatibility hack
-               $renamed = [
-                       'ar_usertext_timestamp' => 'usertext_timestamp',
-                       'un_user_id' => 'user_id',
-                       'un_user_ip' => 'user_ip',
-               ];
-
-               if ( isset( $renamed[$index] ) ) {
-                       return $renamed[$index];
-               } else {
-                       return $index;
-               }
+               return $index;
        }
 
        public function addQuotes( $s ) {
index 2281f23..f201dad 100644 (file)
@@ -426,16 +426,6 @@ class DatabaseSqlite extends DatabaseBase {
                return str_replace( '"', '', parent::tableName( $name, $format ) );
        }
 
-       /**
-        * Index names have DB scope
-        *
-        * @param string $index
-        * @return string
-        */
-       protected function indexName( $index ) {
-               return $index;
-       }
-
        /**
         * This must be called after nextSequenceVal
         *