mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
minor fixes for migration
This commit is contained in:
1 parent
bcf481aff5
commit
6e00b7c50b
3 files changed
+5
-3
No files matched your search
+1
-1
@@ -37,7 +37,7 @@ public class DbMigrationPlugin implements Plugin {
|
||||
lastInit = dbMigration.generateInitMigration();
|
||||
}
|
||||
} catch (IOException e) {
|
||||
throw new RuntimeException("Error while generating migration");
|
||||
throw new RuntimeException("Error while generating migration", e);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+3
-1
@@ -13,6 +13,7 @@ import java.util.StringJoiner;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
import io.avaje.classpath.scanner.core.Location;
|
||||
import io.ebean.DB;
|
||||
import io.ebean.Database;
|
||||
import io.ebean.annotation.Platform;
|
||||
@@ -863,7 +864,8 @@ public class DefaultDbMigration implements DbMigration {
|
||||
}
|
||||
|
||||
private String migrationPath(boolean initMigration) {
|
||||
return initMigration ? migrationInitPath : migrationPath;
|
||||
// remove classpath: or filesystem: prefix
|
||||
return new Location(initMigration ? migrationInitPath : migrationPath).path();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user