From mediawiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgExtNewTables and the translation is 60% complete.
Other languages:
English • ‎Nederlands • ‎español • ‎magyar • ‎polski • ‎中文 • ‎日本語
Extension fields: $wgExtNewTables
Extension Defined tables to be added on schema change
Wprowadzono w wersji:1.11.0 (r23759)
Usunięto w wersji:1.36.0 (Gerrit change 554602; git #95649c39)
Dozwolone wartości:(zobacz poniżej)
Domyślna wartość:[]


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


$wgExtNewTables[] = array( 'tablename', 'schema_file.sql' );

Note that maintenance/update.php will replace /*_*/ with the value of $wgDBprefix . Na przykład:

CREATE TABLE /*_*/table_name ( //...

See Extension:FlaggedRevs for an example.

Zobacz też