Manual:MigrateFileRepoLayout.php/id

Category:MediaWiki code/id#MigrateFileRepoLayout.php

Rincian

migrateFileRepoLayout.php is a maintenance script that copies all files in FileRepo to a new layout using SHA1 paths.

Pilihan

Pilihan Deskripsi Diperlukan
--oldlayoutOld layout; one of 'name' or 'sha1'Diperlukan
--newlayoutNew layout; one of 'name' or 'sha1'Diperlukan
--sinceCopy only files from after this timestampOpsional

This script runs in batches of 50.

Penggunaan

php maintenance/run.php migrateFileRepoLayout --oldlayout name|sha1 --newlayout  name|sha1 [ --since ]
Terminal
In MediaWiki version 1.39.12 and earlier, you must invoke maintenance scripts using php maintenance/scriptName.php instead of php maintenance/run.php scriptName.

Galat yang umum

Invalid old layout.

The value for parameter --oldlayout must be either name or sha1.

Invalid new layout.

The value for parameter --newlayout must be either name or sha1.

Lihat pula

Category:Maintenance scripts/id Category:File maintenance scripts/id
Category:File maintenance scripts/id Category:Maintenance scripts/id Category:MediaWiki code/id