Manual:$wgExtNewTables

From MediaWiki.org
Jump to: navigation, search
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 details
Default value: array()

Other settings: Alphabetical | By Function


[edit] Details

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

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

[edit] See also

Language: English  • 日本語
Personal tools
Namespaces
Variants
Actions
Site
Support
Download
Development
Communication
Print/export
Toolbox