mirror of
https://github.com/Suwayomi/Suwayomi-Server.git
synced 2026-07-13 15:54:35 -05:00
Improve database column references and default category handling (#563)
* Improve default category handling and add cascade to references where possible * Minor fix for default category * Make the default category always first in the normalization
This commit is contained in:
@@ -31,7 +31,6 @@ object Library {
|
||||
MangaTable.update({ MangaTable.id eq manga.id }) {
|
||||
it[inLibrary] = true
|
||||
it[inLibraryAt] = Instant.now().epochSecond
|
||||
it[defaultCategory] = defaultCategories.isEmpty() && existingCategories.isEmpty()
|
||||
}
|
||||
|
||||
if (existingCategories.isEmpty()) {
|
||||
|
||||
Reference in New Issue
Block a user