Open main menu

Manual:$wgExtNewIndexes


Other languages:
English • ‎español • ‎magyar • ‎polski • ‎中文 • ‎日本語
Extensions: $wgExtNewIndexes
Extension defined indexes to be added to existing tables
Introduced in version:1.11.0 (r23759)
Removed in version:still in use
Allowed values:(see below)
Default value:array()

DetailsEdit

Used to add indexes to existing tables. For PostgreSQL, you can add the index clause instead of a filename.

UsageEdit

$wgExtNewIndexes[] = array( 'tablename', 'indexname', 'schema_file.sql' );

## Postgres only:
$wgExtNewIndexes[] = array( 'tablename', 'indexname', '(columns)' );

See alsoEdit