Manual:$wgExtNewTables/es
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed completely in version <tvar name=ver>1.36.0</tvar>.</translate> |
<translate> Extension fields</translate>: $wgExtNewTables | |
---|---|
Extension Defined tables to be added on schema change |
|
<translate> Introduced in version:</translate> | 1.11.0 (r23759) |
<translate> Removed in version:</translate> | 1.36.0 (Gerrit change 554602; git #95649c39) |
<translate> Allowed values:</translate> | (véase más abajo) |
<translate> Default value:</translate> | [] |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
Detalles
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
.
Por ejemplo:
CREATE TABLE /*_*/table_name ( //...
Véase Extension:FlaggedRevs para un ejemplo.