change jasync to jdbc

This commit is contained in:
2019-08-04 18:05:31 +02:00
parent cbb86dacc5
commit aeabe3f8c1
16 changed files with 107 additions and 79 deletions

View File

@@ -31,7 +31,7 @@ data class Query(
connection.sendQuery(down)
this::class.java.classLoader.getResource("sql/migration/deleteHistory.sql")!!.readText().let {
connection.exec(it, listOf(name))
connection.sendQuery(it, listOf(name))
}
return Migration.Status.OK
@@ -42,7 +42,7 @@ data class Query(
up()
down()
it.sendQuery("ROLLBACK")
}.join()
}
return Migration.Status.OK // TODO
}
@@ -52,7 +52,7 @@ data class Query(
up()
down()
it.sendQuery("ROLLBACK")
}.join()
}
return Migration.Status.OK // TODO
}