Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for tracker URLs inside mihon #469

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
fix merge conflict
Shamicen committed Mar 11, 2024
commit c1dd69f775e4985030ae2b077091726b2d258aa8
4 changes: 2 additions & 2 deletions data/src/main/sqldelight/tachiyomi/data/mangas.sq
Original file line number Diff line number Diff line change
@@ -27,7 +27,7 @@ CREATE TABLE mangas(
last_modified_at INTEGER NOT NULL DEFAULT 0,
favorite_modified_at INTEGER,
version INTEGER NOT NULL DEFAULT 0,
is_syncing INTEGER NOT NULL DEFAULT 0
is_syncing INTEGER NOT NULL DEFAULT 0,
web_urls TEXT AS List<String>
);

@@ -159,7 +159,7 @@ UPDATE mangas SET
update_strategy = coalesce(:updateStrategy, update_strategy),
calculate_interval = coalesce(:calculateInterval, calculate_interval),
version = coalesce(:version, version),
is_syncing = coalesce(:isSyncing, is_syncing)
is_syncing = coalesce(:isSyncing, is_syncing),
web_urls = coalesce(:webUrls, web_urls)
WHERE _id = :mangaId;

1 change: 1 addition & 0 deletions data/src/main/sqldelight/tachiyomi/migrations/3.sqm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE mangas ADD COLUMN web_urls TEXT;
1 change: 1 addition & 0 deletions domain/src/main/java/tachiyomi/domain/manga/model/Manga.kt
Original file line number Diff line number Diff line change
@@ -123,6 +123,7 @@ data class Manga(
updateStrategy = UpdateStrategy.ALWAYS_UPDATE,
initialized = false,
lastModifiedAt = 0L,
favoriteModifiedAt = null,
version = 0L,
webUrls = null,
)