Hi, I am upgrading my app that uses H2 as the database. Some people using it will not move to version 2 of my app and may go straight to version 3. Since I am changing the H2 version with each release of my app, when I connect to an old version of the database, I get the 90048 error, however it does not tell me which version the database is. At the moment, I am only on version 2 of my app, so the database had to be version 214, and therefore this worked: org.h2.tools.Upgrade.upgrade ("jdbc:h2:" + database, info, 214); // Original version however in version 3 of my app, how do I determine what version the database is before doing the upgrade command? (ie, how do I know what to put in place of 214?)
Or do I need to? Can I try the upgrade with 214 and if it fails, then try the upgrade with 224 (my current version)? Thanks for your help. -- You received this message because you are subscribed to the Google Groups "H2 Database" group. To unsubscribe from this group and stop receiving emails from it, send an email to h2-database+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/h2-database/a463d76c-f762-4e9e-bff1-bfa0c1b7b5fen%40googlegroups.com.