Manuale:$wgExtNewTables

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:
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
Introdotto nella versione:1.11.0 (r23759)
Rimosso nella versione:still in use
Valori concessi:(vedi sotto)
Valore predefinito:array()
Impostazioni: Alfabetiche | Per funzione

Dettagli

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

Uso

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

Note that maintenance/update.php will replace /*_*/ with the value of $wgDBprefix . Per esempio:

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

See Extension:FlaggedRevs for an example.

Vedi anche