title: Migrate H2 1.3.172 database to 1.4.185 "Unsupported database file version or invalid file header in file *** [90048-185] 90048/90048"
body: <p>I tried opening a database file which correctly works in H2 1.3.172 with H2 1.4.185 and I get a not very reassuring: "java.lang.ArrayIndexOutOfBoundsException: 2048"</p>
  
  <p>I therefore try an export with </p>
  
  <pre><code>java -cp h2-latest.jar org.h2.tools.Recover 
  </code></pre>
  
  <p>and an import into a new database with </p>
  
  <pre><code>java -cp h2-latest.jar org.h2.tools.RunScript -url jdbc:h2:./mydb.db -user sa -script mydb.sql
  </code></pre>
  
  <p>and the export works ok, however trying to connect to the database with h2-latest.jar returns:</p>
  
  <pre><code>Unsupported database file version or invalid file header in file "mydb.db" [90048-185] 90048/90048
  </code></pre>
  
  <p>so I'm stuck with migration, apparently I have to stick with 1.3 version.</p>