OverlordQ or someone, can you review please?
--- /dev/null
+DROP INDEX iwl_prefix;
+CREATE INDEX iwl_prefix_from_title ON iwlinks (iwl_prefix, iwl_from, iwl_title);
\ No newline at end of file
iwl_title TEXT NOT NULL DEFAULT ''
);
CREATE UNIQUE INDEX iwl_from ON iwlinks (iwl_from, iwl_prefix, iwl_title);
-CREATE INDEX iwl_prefix ON iwlinks (iwl_prefix, iwl_title);
+CREATE INDEX iwl_prefix_from_title ON iwlinks (iwl_prefix, iwl_from, iwl_title);
wfOut( "Adding ipb_address_unique index\n" );
$wgDatabase->sourceFile( archive( 'patch-ipb_address_unique.sql' ) );
}
+
+ # Fix iwlinks index
+ if ( pg_index_exists( 'iwlinks', 'iwl_prefix' ) ) {
+ wfOut( "Replacing index 'iwl_prefix' with 'iwl_prefix_from_title'...\n" );
+ $wgDatabase->sourceFile( archive( 'patch-ipb_address_unique.sql' ) );
+ }
global $wgExtNewTables, $wgExtPGNewFields, $wgExtPGAlteredFields, $wgExtNewIndexes;
# Add missing extension tables