fix mysql migration log insert
This commit is contained in:
@@ -17,7 +17,7 @@ public class MysqlMigrationApplier extends MigrationApplier {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void insertMigrationLog(Migration m) throws SQLException {
|
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(1, m.getClass().getSimpleName());
|
||||||
stmt.setString(2, "0.1"); //TODO insert actual library version
|
stmt.setString(2, "0.1"); //TODO insert actual library version
|
||||||
stmt.executeUpdate();
|
stmt.executeUpdate();
|
||||||
|
|||||||
Reference in New Issue
Block a user