5

We have been using Flyway in our production environment since launch, it works great. But we now have dozens of migration scripts in our classpath.

How do we squash them gracefully without disturbing our production app?

  • 1
    Could you please describe what you would like to achieve more specifically? Are you looking to reduce your migration scripts, eliminate them, something else? – Chase Jan 27 '16 at 18:43
  • 1
    squash as in? Concatenate them into one file? Create one equivalent script that creates the final schema without going through each modification? – assylias Jan 27 '16 at 18:46
  • I'd like to be able to remove all the migration scripts and baseline against the production db as it is. Is that not a typical operation? – Mark Anderson Jan 27 '16 at 19:52
  • No it isn't a typical operation. Normal practice is to leave the scripts etc there for future reference, and just in case they are needed. They typically won't be applied again ... but suppose that you needed to restore an old database backup. – Stephen C Jan 22 '19 at 11:41

0 Answers0