Open main menu
This page is a translated version of the page Manual:$wgExtNewTables and the translation is 20% complete.

Other languages:
English • ‎español • ‎magyar • ‎polski • ‎中文 • ‎日本語
扩展: $wgExtNewTables
Extension Defined tables to be added on schema change
引进版本:1.11.0 (r23759)
移除版本:仍在使用
允许的值:(参见下方)
默认值:array()

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.

See also