-
-
Notifications
You must be signed in to change notification settings - Fork 266
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: series metadata supports alternate titles
Closes: #878
- Loading branch information
Showing
17 changed files
with
282 additions
and
15 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
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
13 changes: 13 additions & 0 deletions
13
komga/src/flyway/resources/db/migration/sqlite/V20230116112647__series_alternate_title.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,13 @@ | ||
CREATE TABLE SERIES_METADATA_ALTERNATE_TITLE | ||
( | ||
LABEL varchar NOT NULL, | ||
TITLE varchar NOT NULL, | ||
SERIES_ID varchar NOT NULL, | ||
FOREIGN KEY (SERIES_ID) REFERENCES SERIES (ID) | ||
); | ||
|
||
alter table series_metadata | ||
add column ALTERNATE_TITLES_LOCK boolean NOT NULL DEFAULT 0; | ||
|
||
create index idx__series_metadata_alternate_title__series_id | ||
on SERIES_METADATA_ALTERNATE_TITLE (SERIES_ID); |
6 changes: 6 additions & 0 deletions
6
komga/src/main/kotlin/org/gotson/komga/domain/model/AlternateTitle.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,6 @@ | ||
package org.gotson.komga.domain.model | ||
|
||
data class AlternateTitle( | ||
val label: String, | ||
val title: String, | ||
) |
Oops, something went wrong.