Clean up database sys_file_metadata

This job will delete records in the table sys_file_metadata

  • which have a link to sys_file,

  • but record in sys_file is missing

Workflow

Run this script

  • with the Upgrade Wizard

  • or with the CLI

typo3cms upgrade:prepare
typo3cms upgrade:run cleanUpDbSysFileMetadata