[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
blocks PDB-1734 Collapse 1.x migrations Closed
Template:
Epic Link: Tech Debt

 Description   

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 Fri Oct 18 22:23:00 PDT 2019 using JIRA 7.7.1#77002-sha1:e75ca93d5574d9409c0630b81c894d9065296414.