mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#692 - MigrationVersion parses version "0.1.1-SNAPSHOT" as "0.1"
This commit is contained in:
1 parent
45e488cadb
commit
0508b0254f
2 files changed
+17
-1
No files matched your search
@@ -168,7 +168,7 @@ public class MigrationVersion implements Comparable<MigrationVersion> {
|
||||
|
||||
value = value.replace('_', '.');
|
||||
|
||||
String[] sections = value.split("\\.");
|
||||
String[] sections = value.split("[\\.-]");
|
||||
|
||||
if ("r".equalsIgnoreCase(sections[0])) {
|
||||
// a "repeatable" version (does not have a version number)
|
||||
|
||||
Reference in new issue
Block a user