-
-
Notifications
You must be signed in to change notification settings - Fork 205
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
flyway migration to regenerate covers for books with first page in webp format
- Loading branch information
Showing
3 changed files
with
11 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
10 changes: 10 additions & 0 deletions
10
komga/src/main/resources/db/migration/V20190906100609__regenerate_webp_covers.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
update BOOK_METADATA | ||
set STATUS = 'UNKNOWN' | ||
where ID in ( | ||
select m.id | ||
from BOOK_METADATA m, | ||
BOOK_METADATA_PAGE p | ||
where m.ID = p.BOOK_METADATA_ID | ||
and m.THUMBNAIL is null | ||
and p.NUMBER = 0 | ||
and p.MEDIA_TYPE = 'image/webp'); |