b1f46ed830
* Migrate History screen database call to SQLDelight - Move all migrations to SQLDelight - Move all tables to SQLDelight Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com> * Changes from review comments * Add adapters to database * Remove logging of database version in App * Change query name for paging source queries * Update migrations * Make SQLite Callback handle migration - To ensure it updates the database * Use SQLDelight Schema version for Callback database version Co-authored-by: inorichi <3521738+inorichi@users.noreply.github.com>
22 lines
743 B
Kotlin
22 lines
743 B
Kotlin
package eu.kanade.data.chapter
|
|
|
|
import eu.kanade.domain.chapter.model.Chapter
|
|
|
|
val chapterMapper: (Long, Long, String, String, String?, Boolean, Boolean, Long, Float, Long, Long, Long) -> Chapter =
|
|
{ id, mangaId, url, name, scanlator, read, bookmark, lastPageRead, chapterNumber, sourceOrder, dateFetch, dateUpload ->
|
|
Chapter(
|
|
id = id,
|
|
mangaId = mangaId,
|
|
read = read,
|
|
bookmark = bookmark,
|
|
lastPageRead = lastPageRead,
|
|
dateFetch = dateFetch,
|
|
sourceOrder = sourceOrder,
|
|
url = url,
|
|
name = name,
|
|
dateUpload = dateUpload,
|
|
chapterNumber = chapterNumber,
|
|
scanlator = scanlator,
|
|
)
|
|
}
|