手册:$wgExtNewTables
此功能已在版本1.36.0中完全移除。 |
扩展字段: $wgExtNewTables | |
---|---|
Extension Defined tables to be added on schema change |
|
引进版本: | 1.11.0 (r23759) |
移除版本: | 1.36.0 (Gerrit change 554602; git #95649c39) |
允许的值: | (参见下方) |
默认值: | [] |
其他设置: 按首字母排序 | 按功能排序 |
Details
Can be used with Manual:Hooks/LoadExtensionSchemaUpdates to add additional database tables when maintenance/update.php is called.
Usage
$wgExtNewTables[] = array( 'tablename', 'schema_file.sql' );
Note that maintenance/update.php will replace /*_*/ with the value of $wgDBprefix
.
For example:
CREATE TABLE /*_*/table_name ( //...
See Extension:FlaggedRevs for an example.