Manual:AttachLatest.php

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:AttachLatest.php and the translation is 57% complete.
Other languages:
Deutsch • ‎English • ‎español • ‎polski • ‎português • ‎português do Brasil • ‎čeština • ‎日本語

Detalhes

attachLatest.php file is a maintenance script that is quick hackjob to fix damaged imports on wikisource page records have page_latest column wrong. The program is looking for pages with column page_latest from the table page set to 0. For these pages, it then attaches the latest revision of that page according to the revision timestamp. The script finally prints out the number of pages, which have been or would be changed.

attachLatest.php does not check, if the revision, which is set as page_latest actually exists. If the page_latest field points to a non-existing revision, attachLatest.php, unless used with the --regenerate-all parameter, will not fix this.

Uso

Opção/parâmetro Descrição
--fix Para realmente mudar o banco de dados.
--regenerate-all Para regenerar este campo para todos os registros na página de tabela.
no parameters Será exibido o que será corrigido, mas nenhuma mudança será feita no banco de dados.