Skip to content
Snippets Groups Projects
Commit ff521cf4 authored by felmer's avatar felmer
Browse files

SqlMigrationTest: start version has to be positive

SVN: 26788
parent 018f357b
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ public abstract class SqlMigrationTestAbstract ...@@ -79,7 +79,7 @@ public abstract class SqlMigrationTestAbstract
{ {
SqlMigrationVersion newestVersion = new SqlMigrationVersion(newestVersionString); SqlMigrationVersion newestVersion = new SqlMigrationVersion(newestVersionString);
SqlMigrationVersion firstVersion = 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 migrationContext = null;
DatabaseConfigurationContext scratchContext = null; DatabaseConfigurationContext scratchContext = null;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment