Remove unused sync scaffold

Drops the unused version, is_syncing and last_modified_at columns and their triggers.
This commit is contained in:
AntsyLich
2026-09-27 21:47:12 +06:00
parent 532575e29e
commit c67a33f3d4
18 changed files with 58 additions and 187 deletions
@@ -41,7 +41,6 @@ class ChapterRepositoryImpl(
chapter.sourceOrder,
chapter.dateFetch,
chapter.dateUpload,
chapter.version,
chapter.memo,
)
.awaitAsOne()
@@ -78,8 +77,6 @@ class ChapterRepositoryImpl(
dateFetch = chapterUpdate.dateFetch,
dateUpload = chapterUpdate.dateUpload,
chapterId = chapterUpdate.id,
version = chapterUpdate.version,
isSyncing = 0,
memo = chapterUpdate.memo,
)
}
@@ -150,9 +147,6 @@ class ChapterRepositoryImpl(
sourceOrder: Long,
dateFetch: Long,
dateUpload: Long,
lastModifiedAt: Long,
version: Long,
isSyncing: Long,
memo: JsonObject,
): Chapter = Chapter(
id = id,
@@ -167,8 +161,6 @@ class ChapterRepositoryImpl(
dateUpload = dateUpload,
chapterNumber = chapterNumber,
scanlator = scanlator,
lastModifiedAt = lastModifiedAt,
version = version,
memo = memo,
)
}
@@ -7,7 +7,6 @@ import tachiyomi.domain.manga.model.Manga
import tachiyomi.domain.manga.model.MangaWithChapterCount
object MangaMapper {
@Suppress("UNUSED_PARAMETER")
fun mapManga(
id: Long,
source: Long,
@@ -29,10 +28,7 @@ object MangaMapper {
dateAdded: Long,
updateStrategy: UpdateStrategy,
calculateInterval: Long,
lastModifiedAt: Long,
favoriteModifiedAt: Long?,
version: Long,
isSyncing: Long,
notes: String,
memo: JsonObject,
): Manga = Manga(
@@ -56,9 +52,7 @@ object MangaMapper {
thumbnailUrl = thumbnailUrl,
updateStrategy = updateStrategy,
initialized = initialized,
lastModifiedAt = lastModifiedAt,
favoriteModifiedAt = favoriteModifiedAt,
version = version,
notes = notes,
memo = memo,
)
@@ -84,10 +78,7 @@ object MangaMapper {
dateAdded: Long,
updateStrategy: UpdateStrategy,
calculateInterval: Long,
lastModifiedAt: Long,
favoriteModifiedAt: Long?,
version: Long,
isSyncing: Long,
notes: String,
memo: JsonObject,
totalCount: Long,
@@ -119,10 +110,7 @@ object MangaMapper {
dateAdded,
updateStrategy,
calculateInterval,
lastModifiedAt,
favoriteModifiedAt,
version,
isSyncing,
notes,
memo,
),
@@ -156,10 +144,7 @@ object MangaMapper {
dateAdded: Long,
updateStrategy: UpdateStrategy,
calculateInterval: Long,
lastModifiedAt: Long,
favoriteModifiedAt: Long?,
version: Long,
isSyncing: Long,
notes: String,
memo: JsonObject,
totalCount: Long,
@@ -185,10 +170,7 @@ object MangaMapper {
dateAdded,
updateStrategy,
calculateInterval,
lastModifiedAt,
favoriteModifiedAt,
version,
isSyncing,
notes,
memo,
),
@@ -174,7 +174,6 @@ class MangaRepositoryImpl(
coverLastModified = it.coverLastModified,
dateAdded = it.dateAdded,
updateStrategy = it.updateStrategy,
version = it.version,
memo = it.memo,
updateTitle = it.title.isNotBlank(),
updateCover = !it.thumbnailUrl.isNullOrBlank(),
@@ -210,8 +209,6 @@ class MangaRepositoryImpl(
dateAdded = value.dateAdded,
mangaId = value.id,
updateStrategy = value.updateStrategy,
version = value.version,
isSyncing = 0,
notes = value.notes,
memo = value.memo,
)