Skip to content

Commit

Permalink
update h2 to 2.0.202
Browse files Browse the repository at this point in the history
Note that this version is NOT backwards compatible with 1.x version

Hence, we use a new DB path "captcha2". The contents in the old DB can be reused
by following instructions in
https://github.com/h2database/h2database/releases/tag/version-2.0.202
  • Loading branch information
hrj committed Dec 9, 2021
1 parent 5f77eee commit 51a1f0a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
Binary file removed lib/h2-1.4.200.jar
Binary file not shown.
Binary file added lib/h2-2.0.202.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion src/main/scala/lc/database/DB.scala
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package lc.database
import java.sql._

class DBConn() {
val con: Connection = DriverManager.getConnection("jdbc:h2:./data/H2/captcha", "sa", "")
val con: Connection = DriverManager.getConnection("jdbc:h2:./data/H2/captcha2", "sa", "")

def getStatement(): Statement = {
con.createStatement()
Expand Down

0 comments on commit 51a1f0a

Please sign in to comment.