fix: database migration failure

This commit is contained in:
Gauthier Roebroeck 2020-08-24 16:08:42 +08:00
parent ad9709cfef
commit 2ca607708e

View file

@ -26,7 +26,7 @@ left join BOOK B on B.ID = m.BOOK_ID"""
v.filter { (it["PUBLISHER"] as String).isNotEmpty() }
.sortedByDescending { it["NUMBER_SORT"] as Double? }
.map { it["PUBLISHER"] as String }
.firstOrNull()
.firstOrNull() ?: ""
val publisherLock = v.mapNotNull { it["PUBLISHER_LOCK"] as Int? }.max()
val readingDir =