mirror of
https://github.com/gotson/komga.git
synced 2026-04-29 02:14:07 +02:00
fix: mark books with missing page file size as outdated
This commit is contained in:
parent
4f8dee77ed
commit
a03bda9797
1 changed files with 8 additions and 0 deletions
|
|
@ -0,0 +1,8 @@
|
|||
update media
|
||||
set STATUS = 'OUTDATED'
|
||||
WHERE BOOK_ID in
|
||||
(select distinct M.BOOK_ID
|
||||
from MEDIA_PAGE P
|
||||
inner join MEDIA M on P.BOOK_ID = M.BOOK_ID
|
||||
where M.MEDIA_TYPE in ('application/zip', 'application/x-rar-compressed; version=4')
|
||||
and P.FILE_SIZE is null);
|
||||
Loading…
Reference in a new issue