Hello.
Use the recommended procedure with SCRIPT TO 'filename.sql' in your old version of H2, creation of a new database in the new version, and RUNSCIPT FROM 'filename.sql' in it.
Because there is a huge difference between 1.2.142 and recent releases, this script may need some editing, but it depends on the schema of your data.