Add deduplication for file object thumbnails

This commit is contained in:
Andrey Antukh
2023-11-24 10:40:56 +01:00
parent 6d49e1cac5
commit d82ebdc034
7 changed files with 278 additions and 70 deletions

View File

@@ -309,7 +309,7 @@
(let [res (db/exec-one! th/*pool* ["select count(*) from storage_object where deleted_at is null"])]
(t/is (= 2 (:count res)))))
;; now we proceed to manually delete all team_font_variant
;; now we proceed to manually delete all file_media_object
(db/exec-one! th/*pool* ["delete from file_media_object"])
;; run the touched gc task