diff --git a/dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/migration/SqlMigrationTestAbstract.java b/dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/migration/SqlMigrationTestAbstract.java index ba4489c3ee8edf8c30cfcfd201a6aa69ce90ca01..86cbd37e73ede4f5dc09901a6eba3398e6e1695b 100644 --- a/dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/migration/SqlMigrationTestAbstract.java +++ b/dbmigration/sourceTest/java/ch/systemsx/cisd/dbmigration/migration/SqlMigrationTestAbstract.java @@ -79,7 +79,7 @@ public abstract class SqlMigrationTestAbstract { SqlMigrationVersion newestVersion = new SqlMigrationVersion(newestVersionString); SqlMigrationVersion firstVersion = - new SqlMigrationVersion(newestVersion.getVersionInt() - CHECK_NUMBER_OF_MIGRATIONS); + new SqlMigrationVersion(Math.max(1, newestVersion.getVersionInt() - CHECK_NUMBER_OF_MIGRATIONS)); DatabaseConfigurationContext migrationContext = null; DatabaseConfigurationContext scratchContext = null;