- Issue created by @masterperoo
Module broken due to a missing column in query
$query = $this->database->select('file_managed', 'f');
$query->condition('f.fid', $currnet_fid, '>');
$query->isNotNull('f.filename');
$query->fields('f', ['fid', 'filename', 'filemime', 'filesize', 'origname']);
$query->where('f.fid NOT IN(SELECT fid from {duplicate_files})');
$query->where('f.fid NOT IN(SELECT original_fid from {duplicate_files})');
$query->range(0, 1);
$row = $query->execute()->fetchObject();
Column not found: 1054 Unknown column 'f.origname' in 'field list': SELECT "f"."fid" AS "fid", "f"."filename" AS "filename", "f"."filemime" AS "filemime", "f"."filesize" AS "filesize", "f"."origname"
That column does not exist in file_managed table
Install and attempt to find duplicates
Needs work
1.2
Code