| This feature was removed completely in version 1.36.0. |
| Extension fields: $wgExtNewTables | |
|---|---|
| Extension Defined tables to be added on schema change |
|
| Introduced in version: | 1.11.0 (r23759) |
| Removed in version: | 1.36.0 (Gerrit change 554602; git #95649c39) |
| Allowed values: | (see below) |
| Default value: | [] |
| Other settings: Alphabetical | By function | |
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
- $wgExtNewFields
- $wgExtNewIndexes
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.