title: Flyway: how to find out maximum version available to migrate()?
body: <p>I'd like to detect the condition where the user's database is newer than the maximum version available to migration (for example, the user downgraded to an older version of the software). When I run the following:</p>
  
  <pre><code>System.out.println("source: " + flyway.status().getVersion().toString());
  System.out.println("target: " + flyway.getTarget().toString());
  </code></pre>
  
  <p>I get the following output:</p>
  
  <pre><code>source: 8
  target: 9223372036854775807
  </code></pre>
  
  <p>How do I get the actual maximum version available to <code>migrate()</code>?</p>