commit dc15aa3bbc8e263edd9fef99281d02925f6d4c8e parent 87c42907a6b4d556f290985263f4a2ecd5b524c4 Author: Antoine A <> Date: Mon, 27 Nov 2023 20:17:15 +0000 Fix database reset error Diffstat:
| M | util/src/main/kotlin/DB.kt | | | 6 | +++++- |
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/util/src/main/kotlin/DB.kt b/util/src/main/kotlin/DB.kt @@ -244,6 +244,10 @@ fun resetDatabaseTables(cfg: DatabaseConfig, sqlFilePrefix: String) { } val sqlDrop = File("${cfg.sqlDir}/$sqlFilePrefix-drop.sql").readText() - conn.execSQLUpdate(sqlDrop) // TODO can fail ? + try { + conn.execSQLUpdate(sqlDrop) + } catch (e: Exception) { + // TODO Fix fail because precense of _v does not mean patch is applied + } } } \ No newline at end of file