title: What maven phase should I bind the flyway:migrate goal to?
body: <p>I'm using Flyway to keep my DB schema up to date. I'm hoping to automate this as a step in the build lifecyle using flyway's maven plugin which will execute the <a href="https://flywaydb.org/documentation/maven/migrate" rel="nofollow noreferrer"><code>flyway:migrate</code></a> goal.</p>
  
  <p>What maven phase should I bind this goal to? I'm confused because there's a few different use cases for this. </p>
  
  <ol>
  <li><p>I want my <strong>test db</strong> completely destroyed and rebuilt every time tests are run, so it makes sense to execute the plugin once during the <code>test</code> phase</p></li>
  <li><p>In my <strong>development</strong> environment I want my DB migrated (not rebuilt!) each time I build the project in general to keep the schema up to date. Would I bind this to... <code>package</code>? Or <code>compile</code>? </p></li>
  <li><p>In my <strong>production</strong> environment I similarly want to run migrate again, but on my production DB. Should this even be automated, or should it be run manually? If it should be automated, would it be part of the <code>deploy</code> phase? </p></li>
  </ol>
  
  <p>Thanks!</p>