[PDB-1735] Refactor migrate.clj Created: 2015/07/07  Updated: 2015/08/18

Status: Open
Project: PuppetDB
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Normal
Reporter: Ryan Senior Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
blocks PDB-1734 Collapse 1.x migrations Closed
Epic Link: Tech Debt


migrate.clj could really use a refactor. There's a lot of duplicate code there and it's just grown and become worse over time. There are several libraries out there that do what our current migrate code does and are probably worth a look. Although the refactor wouldn't need to include these features, having these features in mind (to make them easier) would be good:

  • Collapse migrations
  • Test different migration upgrade scenarios (i.e. upgrading from 23 to 28 is fast but 25 to 28 is slow)
  • Tools to create the schema as of a particular migration (useful when we baseline our migrations at 2.0.0 when we release 4.0.0)

Generated at Sun May 31 14:06:05 PDT 2020 using Jira 8.5.2#805002-sha1:a66f9354b9e12ac788984e5d84669c903a370049.