refactoring: change select method names

This commit is contained in:
2019-07-02 23:40:29 +02:00
parent f48b06b596
commit 6cc3152215
8 changed files with 53 additions and 22 deletions

View File

@@ -12,14 +12,14 @@ class Query(
override var executedAt: Date? = null
): Migration, Entity<String?>(name) {
override fun up(): Migration.Status {
connection.exec(up)
connection.exec(up).join()
// TODO insert to migration Table
return Migration.Status.OK
}
override fun down(): Migration.Status {
connection.exec(down)
connection.exec(down).join()
// TODO insert to migration Table
return Migration.Status.OK
@@ -29,7 +29,7 @@ class Query(
connection.inTransaction {
up()
down()
it.sendQuery("ROLLBACK");
it.sendQuery("ROLLBACK")
}.join()
return Migration.Status.OK // TODO