diff --git a/src/main/kotlin/Main.kt b/src/main/kotlin/Main.kt index f5e4ca5..46e16a6 100644 --- a/src/main/kotlin/Main.kt +++ b/src/main/kotlin/Main.kt @@ -110,6 +110,7 @@ fun main() { enabled = !winState.isMinimized, onCloseRequest = { exitApplication() + databaseOp.close() } ) { MaterialTheme( diff --git a/src/main/kotlin/database/entity/BonusRecord.kt b/src/main/kotlin/database/entity/BonusRecord.kt index d5b3b61..7ce2522 100644 --- a/src/main/kotlin/database/entity/BonusRecord.kt +++ b/src/main/kotlin/database/entity/BonusRecord.kt @@ -37,7 +37,7 @@ object BonusRecords : BaseIntIdTable() { /** * 备注 */ - val remark = varchar("remark", 500).clientDefault { "" } + val remark = varchar("remark", 500).default("") } class BonusRecord(id: EntityID) : BaseIntEntity(id, BonusRecords) {