Manual:$wgExtNewIndexes/zh

From Linux Web Expert

<translate> Extension fields</translate>: $wgExtNewIndexes
Extension defined indexes to be added to existing tables
<translate> Introduced in version:</translate>1.11.0 (r23759)
<translate> Removed in version:</translate>1.36.0 (Gerrit change 554602; git #95649c39)
<translate> Allowed values:</translate>(参见下方)
<translate> Default value:</translate>[]

详情

被用于添加已存表的索引。 For PostgreSQL, you can add the index clause instead of a filename.

用法

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

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

參見