mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-14 06:45:21 +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
+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