Some domain Track model migrations

This commit is contained in:
arkon
2023-12-24 18:30:24 -05:00
parent 5908bd1930
commit 6d74a86711
28 changed files with 129 additions and 127 deletions

View File

@@ -16,7 +16,7 @@ fun Track.copyPersonalFrom(other: Track): Track {
fun Track.toDbTrack(): DbTrack = DbTrack.create(syncId).also {
it.id = id
it.manga_id = mangaId
it.media_id = remoteId
it.remote_id = remoteId
it.library_id = libraryId
it.title = title
it.last_chapter_read = lastChapterRead.toFloat()
@@ -34,7 +34,7 @@ fun DbTrack.toDomainTrack(idRequired: Boolean = true): Track? {
id = trackId,
mangaId = manga_id,
syncId = sync_id.toLong(),
remoteId = media_id,
remoteId = remote_id,
libraryId = library_id,
title = title,
lastChapterRead = last_chapter_read.toDouble(),