Manual:ResetPageRandom.php/cs

Category:MediaWiki code/cs#ResetPageRandom.php

Podrobnosti

resetPageRandom.php maintenance script resets the page_random field for articles in the provided time range. The page_random field in the page table is responsible for returning random pages. This is useful when you want to refresh your random article sequence.

Options

Option Required Default value
--fromFrom date range selector to select articles to update, ex: 20041011000000Požadované
--toTo date range selector to select articles to update, ex: 20050708000000Požadované
--dryDo not update column. Just do dry run.Volitelné
--batch-startUse when you need to restart the reset process from a given page ID offset in case a previous reset failed or was stoppedVolitelné

Usage

php maintenance/run.php resetPageRandom --from fromDate --to toDate [ --dry | --batch-start ]
Ve verzi MediaWiki 1.39.12 a starší musíte vyvolat skripty údržby pomocí php maintenance/scriptName.php namísto php maintenance/run.php scriptName.

Dry run to test

Terminal

Actual run to update the column

Terminal

See also

Category:Maintenance scripts/cs Category:Content maintenance scripts/cs
Category:Content maintenance scripts/cs Category:Maintenance scripts/cs Category:MediaWiki code/cs