A maintenance script should be added that allows the importing of images from the image, oldimage and filearchive tables into the mediamoderation_scan table.
The table will contain the SHA-1 values of the images from these tables and null on all other row values.
This maintenance script should be run when update.php is run. However, this should only be done once T350323: Write an empty row to scan table on file upload is complete so that files uploaded after the maintenance script is run are added to the table without needing to run this script again.
Acceptance criteria
- Create this maintenance script
- Adequately phpunit test this script to ensure reliability