mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#770 - DB Migration DDL generation run offline when using multiple platforms
This commit is contained in:
@@ -205,6 +205,11 @@ public class DbMigration {
|
||||
// use this flag to stop other plugins like full DDL generation
|
||||
if (!online) {
|
||||
DbOffline.setGenerateMigration();
|
||||
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);
|
||||
}
|
||||
}
|
||||
setDefaults();
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user