MediaLibrary: Check for the schema & foreign keys integrity

After a migration was run
4 jobs for add_integrity_checks in 21 minutes and 3 seconds (queued for 1 second)