mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#2283 - ddl-generator - Add DbMigration.addPlatform(Platform) with default sub-directory based on Platform
This commit is contained in:
1 parent
d601a88d82
commit
928b90122f
5 files changed
+52
-55
No files matched your search
@@ -20,13 +20,12 @@ class LastMigration {
|
||||
/**
|
||||
* Return the next migation version given the migration directory.
|
||||
*/
|
||||
static String nextVersion(File migDir, File modelDir, boolean dbinitMigration) {
|
||||
|
||||
static String nextVersion(File migDir, File modelDir, boolean initMigration) {
|
||||
String last = lastVersion(migDir, modelDir);
|
||||
if (last == null) {
|
||||
return null;
|
||||
}
|
||||
return (dbinitMigration) ? last : MigrationVersion.parse(last).nextVersion();
|
||||
return (initMigration) ? last : MigrationVersion.parse(last).nextVersion();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user