1
0
Fork 1
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:
carbotaniuman 2021-02-19 22:18:29 -06:00
parent a68e93746d
commit 1a0460edcd

View file

@ -41,7 +41,7 @@ fun migrate(path: Path) {
Class.forName("org.sqlite.JDBC")
val sqliteDb = path.resolve("metadata.db")
Files.delete(sqliteDb)
Files.deleteIfExists(sqliteDb)
val sqlite = Database.connect("jdbc:sqlite:$sqliteDb")
sqlite.useConnection { conn ->