-
-
Notifications
You must be signed in to change notification settings - Fork 204
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): support custom covers for series
Co-authored-by: Gauthier <gotson@users.noreply.github.com> Co-authored-by: Gauthier Roebroeck <gauthier.roebroeck@gmail.com>
- Loading branch information
1 parent
1ba6822
commit d7470dd
Showing
14 changed files
with
253 additions
and
38 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
20 changes: 20 additions & 0 deletions
20
komga/src/flyway/resources/db/migration/sqlite/V20210902100930__series_thumbnail_blob.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,20 @@ | ||
ALTER TABLE THUMBNAIL_SERIES RENAME TO TMP_THUMBNAIL_SERIES; | ||
|
||
CREATE TABLE THUMBNAIL_SERIES | ||
( | ||
ID varchar NOT NULL PRIMARY KEY, | ||
URL varchar NULL DEFAULT NULL, | ||
SELECTED boolean NOT NULL DEFAULT 0, | ||
THUMBNAIL blob NULL DEFAULT NULL, | ||
TYPE varchar not null, | ||
CREATED_DATE datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
LAST_MODIFIED_DATE datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
SERIES_ID varchar NOT NULL, | ||
FOREIGN KEY (SERIES_ID) REFERENCES SERIES (ID) | ||
); | ||
|
||
INSERT INTO THUMBNAIL_SERIES(ID, URL, SELECTED, CREATED_DATE, LAST_MODIFIED_DATE, SERIES_ID, TYPE) | ||
SELECT ID, URL, SELECTED, CREATED_DATE, LAST_MODIFIED_DATE, SERIES_ID, "SIDECAR" AS TYPE | ||
FROM TMP_THUMBNAIL_SERIES; | ||
|
||
DROP TABLE TMP_THUMBNAIL_SERIES; |
5 changes: 5 additions & 0 deletions
5
komga/src/main/kotlin/org/gotson/komga/domain/model/MarkSelectedPreference.kt
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,5 @@ | ||
package org.gotson.komga.domain.model | ||
|
||
enum class MarkSelectedPreference { | ||
NO, YES, IF_NONE_EXIST | ||
} |
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
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
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
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
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
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
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
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
Oops, something went wrong.