Manual:$wgExtNewTables/ru
Appearance
Эта функция была полностью удалена в версии 1.36.0. |
| Extension fields: $wgExtNewTables | |
|---|---|
| Extension Defined tables to be added on schema change |
|
| Введено в версии: | 1.11.0 (r23759) |
| Удалено в версии: | 1.36.0 (Gerrit change 554602; git #95649c39) |
| Допустимые значения: | (see below) |
| Значение по умолчанию: | [] |
| Другие настройки: По алфавиту | По функциональности | |
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 Расширение:FlaggedRevs for an example.