Skip to content

Commit

Permalink
fix database
Browse files Browse the repository at this point in the history
  • Loading branch information
ForteScarlet committed Mar 31, 2024
1 parent d50c316 commit 8cbc6a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/main/kotlin/Main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,7 @@ fun main() {
enabled = !winState.isMinimized,
onCloseRequest = {
exitApplication()
databaseOp.close()
}
) {
MaterialTheme(
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/database/entity/BonusRecord.kt
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object BonusRecords : BaseIntIdTable() {
/**
* 备注
*/
val remark = varchar("remark", 500).clientDefault { "" }
val remark = varchar("remark", 500).default("")
}

class BonusRecord(id: EntityID<Int>) : BaseIntEntity(id, BonusRecords) {
Expand Down

0 comments on commit 8cbc6a9

Please sign in to comment.