Manual:$wgExtNewTables

From MediaWiki.org
Jump to navigation Jump to search

Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎português do Brasil • ‎中文 • ‎日本語
Extensions: $wgExtNewTables
Extension Defined tables to be added on schema change
Introduced in version:1.11.0 (r23759)
Removed in version:still in use
Allowed values:(see below)
Default value:array()
Other settings: Alphabetical | By function

Details[edit]

Can be used with Manual:Hooks/LoadExtensionSchemaUpdates to add additional database tables when maintenance/update.php is called.

Usage[edit]

$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[edit]