commit 34ccf70ef1e7c4d9f8321a8ca2aeb0c56fe1878e
parent 9c6b7f1afa66d50580c8474717dbcd5fde078ae2
Author: Antoine A <>
Date: Wed, 13 Dec 2023 14:27:38 +0000
Support postgres 14
Diffstat:
2 files changed, 2 insertions(+), 6 deletions(-)
diff --git a/bank/src/main/kotlin/tech/libeufin/bank/Constants.kt b/bank/src/main/kotlin/tech/libeufin/bank/Constants.kt
@@ -39,7 +39,7 @@ val RESERVED_ACCOUNTS = setOf("admin", "bank")
const val MAX_BODY_LENGTH: Long = 4 * 1024 // 4kB
// DB
-const val MIN_VERSION: Int = 15
+const val MIN_VERSION: Int = 14
// API version
const val COREBANK_API_VERSION: String = "2:2:2"
diff --git a/util/src/main/kotlin/DB.kt b/util/src/main/kotlin/DB.kt
@@ -272,9 +272,5 @@ fun resetDatabaseTables(conn: PgConnection, cfg: DatabaseConfig, sqlFilePrefix:
}
val sqlDrop = File("${cfg.sqlDir}/$sqlFilePrefix-drop.sql").readText()
- try {
- conn.execSQLUpdate(sqlDrop)
- } catch (e: Exception) {
- // TODO Fix fail because precense of _v does not mean patch is applied
- }
+ conn.execSQLUpdate(sqlDrop) // TODO Fix fail because precense of _v does not mean patch is applied
}
\ No newline at end of file