Jump to content

Manual:$wgExtNewIndexes

From mediawiki.org
Extension fields: $wgExtNewIndexes
Extension defined indexes to be added to existing tables
Introduced in version:1.11.0 (r23759)
Removed in version:1.36.0 (Gerrit change 554602; git #95649c39)
Allowed values:(see below)
Default value:[]

Details

[edit]

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

Usage

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

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

See also

[edit]