Skip to content

Helpful SQL commands for debugging purpose

Carl Schwan edited this page Oct 26, 2022 · 2 revisions

List all the trash entries without corresponding oc_filecache entry

SELECT t.* from oc_group_folders_trash as t
LEFT join oc_filecache as f
ON f.path = CONCAT("__groupfolders/trash/", t.folder_id, "/", t.name, ".d", t.deleted_time)
WHERE f.fileid is NULL;
Clone this wiki locally