mirror of
https://gitlab.com/mangadex-pub/mangadex_at_home.git
synced 2024-01-19 02:48:37 +00:00
Correct bug
This commit is contained in:
parent
a68e93746d
commit
1a0460edcd
|
@ -41,7 +41,7 @@ fun migrate(path: Path) {
|
||||||
Class.forName("org.sqlite.JDBC")
|
Class.forName("org.sqlite.JDBC")
|
||||||
|
|
||||||
val sqliteDb = path.resolve("metadata.db")
|
val sqliteDb = path.resolve("metadata.db")
|
||||||
Files.delete(sqliteDb)
|
Files.deleteIfExists(sqliteDb)
|
||||||
|
|
||||||
val sqlite = Database.connect("jdbc:sqlite:$sqliteDb")
|
val sqlite = Database.connect("jdbc:sqlite:$sqliteDb")
|
||||||
sqlite.useConnection { conn ->
|
sqlite.useConnection { conn ->
|
||||||
|
|
Loading…
Reference in a new issue