Manual:Update.php/pt

Detalhes
update.php verifica se o esquema da base de dados do MediaWiki precisa de ser atualizada para poder funcionar com a versão atual do MediaWiki. Deveria executar  depois de cada atualização do MediaWiki ou depois de atualizar ou instalar uma extensão que requer uma atualização de esquema. A maioria das extensões que requerem atualizações de esquema irão informar na própria documentação. You should run  after each upgrade of MediaWiki or after the update or install of an extension that requires a schema update. Most extensions that require schema updates will say so in their documentation.

No navegador
Se não tem acesso à linha de comandos do seu servidor, então, utilize o atualizador da Web para executar o comando de atualização.


 * &rarr; Atualizador da Web

Na linha de comandos
Na linha de comandos, ou numa interface de SHH ou similar:

$ php update.php
 * Mude para a diretoria
 * Execute o comando de atualização:
 * Run the update script:

 $ mwscript update.php

Parâmetros
Este comando oferece vários parâmetros (genérico, dependente e específico do comando) que pode ser necessário em alguns ambientes wiki.

Parâmetros de manutenção genéricos

 * used to get a prompt of all available script parameters (generic, script dependent and script specific) together with short explanations of their usage. These are less often used parameters.
 * used to get a prompt of all available script parameters (generic, script dependent and script specific) together with short explanations of their usage. These are less often used parameters.


 * update wiki family if database name depends on virtual host, where wikiId - database name (e.g. enwiki, dewiki ...)
 * update wiki family if database name depends on virtual host, where wikiId - database name (e.g. enwiki, dewiki ...)

Parâmetros específicos de comando

 * skip countdown sequence
 * skip countdown sequence


 * do not purge objectcache table. Normally  purges the  table (generally contains the parser cache and the messages cache),  and  (these are used for  message caching and are cleared in 1.21 and later) tables in the database, if you don't want to purge this table, use the   option.
 * do not purge objectcache table. Normally  purges the  table (generally contains the parser cache and the messages cache),  and  (these are used for  message caching and are cleared in 1.21 and later) tables in the database, if you don't want to purge this table, use the   option.


 * Update shared tables as well.
 * Update shared tables as well.


 * Run this script even if it is disabled by configuration options.
 * Run this script even if it is disabled by configuration options.


 * Specifies the config file (the LocalSettings.php file for the specific wiki). Utilizado para as famílias wiki.
 * Specifies the config file (the LocalSettings.php file for the specific wiki). Utilizado para as famílias wiki.


 * All changes to the table structure or table additions are skipped. Only data changes are made.
 * All changes to the table structure or table additions are skipped. Only data changes are made.


 * No schema changes are made to the database, but the schema changes are saved to a separate SQL file that can be run.
 * No schema changes are made to the database, but the schema changes are saved to a separate SQL file that can be run.


 * Ignora verificações de compatibilidade
 * Ignora verificações de compatibilidade


 * when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.
 * when using composer.local.json to let Composer install extensions and their dependencies, you may see an error message saying that there is a mismatch between the installed and required version (e.g. "mediawiki/semantic-breadcrumb-links: 1.3.0 installed, ~1.3 required"). You can use this parameter to ignore the message and run update.php regardless.

Extensions can install/update their schemas using hook.

Consulte também

 * e
 * para instruções detalhadas em como utilizar $update, consulte $updating, $cmd
 * For detailed instruction on using, see , Manual:Upgrading#Command_line