Index: trunk/phase3/includes/installer/PostgresUpdater.php |
— | — | @@ -464,7 +464,7 @@ |
465 | 465 | } |
466 | 466 | |
467 | 467 | public function addPgExtIndex( $table, $index, $type ) { |
468 | | - if ( $this->db->indexExists( $table, $ni[1] ) ) { |
| 468 | + if ( $this->db->indexExists( $table, $index ) ) { |
469 | 469 | wfOut( "... index \"$index\" on table \"$table\" already exists\n" ); |
470 | 470 | } else { |
471 | 471 | wfOut( "Creating index \"$index\" on table \"$table\"\n" ); |