#790 - DB Migration with multiple platforms (and no maven H2 dependency) gives: java.lang.NoClassDefFoundError: org/h2/api/Trigger

This commit is contained in:
Robin Bygrave
2016-07-31 15:59:54 +12:00
parent 5ce8eb6046
commit 5bab9eb648
@@ -202,10 +202,10 @@ public class DbMigration {
// use this flag to stop other plugins like full DDL generation
if (!online) {
DbOffline.setGenerateMigration();
if (databasePlatform == null || !platforms.isEmpty()) {
if (databasePlatform == null && !platforms.isEmpty()) {
// for multiple platform generation set the general platform
// to H2 so that it runs offline without DB connection
setPlatform(DbPlatformName.H2);
setPlatform(platforms.get(0).platform);
}
}
setDefaults();