public void enableVersioning(DatabaseType dbType, Connection connection) { try { String ddl = format((String) enableVersioningDDL.get(dbType), versionTable, versionColumn, appliedDateColumn, durationColumn); connection.createStatement().executeUpdate(ddl); } catch (SQLException e) { throw new MigrationException("Could not create version-tracking table '" + versionTable + "'.", e); } }