-
-
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.
- Loading branch information
Showing
10 changed files
with
569 additions
and
56 deletions.
There are no files selected for viewing
34 changes: 34 additions & 0 deletions
34
komga/src/flyway/resources/db/migration/sqlite/V20240909112827__syncpoint_readlists.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,34 @@ | ||
CREATE TABLE SYNC_POINT_READLIST | ||
( | ||
SYNC_POINT_ID varchar NOT NULL, | ||
READLIST_ID varchar NOT NULL, | ||
READLIST_NAME varchar NOT NULL, | ||
READLIST_CREATED_DATE datetime NOT NULL, | ||
READLIST_LAST_MODIFIED_DATE datetime NOT NULL, | ||
SYNCED boolean NOT NULL default false, | ||
PRIMARY KEY (SYNC_POINT_ID, READLIST_ID), | ||
FOREIGN KEY (SYNC_POINT_ID) REFERENCES SYNC_POINT (ID) | ||
); | ||
|
||
create index if not exists idx__sync_point_readlist__sync_point_id | ||
on SYNC_POINT_READLIST (SYNC_POINT_ID); | ||
|
||
CREATE TABLE SYNC_POINT_READLIST_BOOK | ||
( | ||
SYNC_POINT_ID varchar NOT NULL, | ||
READLIST_ID varchar NOT NULL, | ||
BOOK_ID varchar NOT NULL, | ||
PRIMARY KEY (SYNC_POINT_ID, READLIST_ID, BOOK_ID), | ||
FOREIGN KEY (SYNC_POINT_ID) REFERENCES SYNC_POINT (ID) | ||
); | ||
|
||
create index if not exists idx__sync_point_readlist_book__sync_point_id_readlist_id | ||
on SYNC_POINT_READLIST_BOOK (SYNC_POINT_ID, READLIST_ID); | ||
|
||
CREATE TABLE SYNC_POINT_READLIST_REMOVED_SYNCED | ||
( | ||
SYNC_POINT_ID varchar NOT NULL, | ||
READLIST_ID varchar NOT NULL, | ||
PRIMARY KEY (SYNC_POINT_ID, READLIST_ID), | ||
FOREIGN KEY (SYNC_POINT_ID) REFERENCES SYNC_POINT (ID) | ||
); |
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.