Skip to content

Commit

Permalink
fix: upgrade h2database file log
Browse files Browse the repository at this point in the history
  • Loading branch information
cssxsh committed Sep 13, 2023
1 parent 5680d29 commit 195ad7d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,11 @@ public class MiraiHibernateConfiguration(@PublishedApi internal val loader: Mira
DriverManager.getConnection(url, properties).close()
} catch (cause: org.h2.jdbc.JdbcSQLNonTransientConnectionException) {
try {
println("try upgrade h2database file")
org.h2.tools.Upgrade.upgrade(url, properties, 214)
} catch (suppressed: Throwable) {
cause.addSuppressed(suppressed)
throw cause
cause.printStackTrace()
}
}
}
Expand Down

0 comments on commit 195ad7d

Please sign in to comment.