Greetings,
while I am not a H2 developer, but just a user I would like to advise the following approach:
1) Do not rely on ignoring duplicates, but filter for distinct by using GROUP BY and Min(_rowid_) or Max(_rowid)
2) Example:
DELETE FROM cfe.instrument_attribute
WHERE ( id_instrument, id_attribute, _rowid_ ) IN ( SELECT id_instrument
, id_attribute
, Min( _rowid_ )
FROM cfe.instrument_attribute
GROUP BY id_instrument
, id_attribute
HAVING Count( * ) > 1 )
;
The example above would ensure a UNBIQUE KEY (id_instrument, id_attribute) in table cfe.instrument_attribute (although you would need to repeat that delete until no row is returned).
Good luck
Andreas