#2283 - ddl-generator - Add DbMigration.addPlatform(Platform) with default sub-directory based on Platform

This commit is contained in:
rbygrave committed 2021-08-02 20:15:51 +12:00
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();
}
/**