Add debug function to reset viewer for all manga

This commit is contained in:
Jobobby04 2021-07-07 20:53:52 -04:00
parent 102811f781
commit a29ddaaf1c

View File

@ -342,4 +342,20 @@ object DebugFunctions {
)
}
}
fun resetReaderViewerForAllManga() {
db.inTransaction {
db.lowLevel().executeSQL(
RawQuery.builder()
.query(
"""
UPDATE ${MangaTable.TABLE}
SET ${MangaTable.COL_VIEWER} = 0
""".trimIndent()
)
.affectsTables(MangaTable.TABLE)
.build()
)
}
}
}