From d4efbfff46d6e0f7b6fef741a08617d607615896 Mon Sep 17 00:00:00 2001 From: wea_ondara Date: Sat, 26 Nov 2022 07:33:27 +0100 Subject: [PATCH] fix mysql migration log insert --- .../jef/platform/mysql/migration/MysqlMigrationApplier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mysql/src/main/java/jef/platform/mysql/migration/MysqlMigrationApplier.java b/mysql/src/main/java/jef/platform/mysql/migration/MysqlMigrationApplier.java index b93579d..dd684b0 100644 --- a/mysql/src/main/java/jef/platform/mysql/migration/MysqlMigrationApplier.java +++ b/mysql/src/main/java/jef/platform/mysql/migration/MysqlMigrationApplier.java @@ -17,7 +17,7 @@ public class MysqlMigrationApplier extends MigrationApplier { @Override protected void insertMigrationLog(Migration m) throws SQLException { - try (var stmt = connection.prepareStatement("INSERT INTO `" + options.getMigrationsTableName() + "` (`name`, `version`) VALUES (?, ?)")) {//TODO configurable log table name + try (var stmt = connection.prepareStatement("INSERT INTO `" + options.getMigrationsTableName() + "` (`migration`, `version`) VALUES (?, ?)")) {//TODO configurable log table name stmt.setString(1, m.getClass().getSimpleName()); stmt.setString(2, "0.1"); //TODO insert actual library version stmt.executeUpdate();