Fix inconsistencies with Manga.create()

This commit is contained in:
Jobobby04 2022-07-15 11:50:06 -04:00
parent 90ab8f1d94
commit 36461b52c0
2 changed files with 17 additions and 5 deletions

View File

@ -166,11 +166,11 @@ data class Manga(
// SY <--
source = -1L,
favorite = false,
lastUpdate = -1L,
dateAdded = -1L,
viewerFlags = -1L,
lastUpdate = 0L,
dateAdded = 0L,
viewerFlags = 0L,
chapterFlags = 0L,
coverLastModified = -1L,
coverLastModified = 0L,
// SY -->
ogArtist = null,
ogAuthor = null,

View File

@ -1,3 +1,15 @@
UPDATE mangas
SET chapter_flags = 0
WHERE chapter_flags = -1;
WHERE chapter_flags = -1;
UPDATE mangas
SET viewer = 0
WHERE viewer = -1;
UPDATE mangas
SET date_added = 0
WHERE date_added = -1;
UPDATE mangas
SET cover_last_modified = 0
WHERE cover_last_modified = -1;
UPDATE mangas
SET last_update = 0
WHERE last_update = -1;