Skip to content

v0.9.1

Choose a tag to compare

@sturlese sturlese released this 22 Aug 17:01
· 83 commits to main since this release

Fixed

  • The repairs status migration aborted on any database carrying a retired row, and the app
    crash-looped.
    ALTER TABLE ... RENAME carries a table's CONSTRAINTS with it, so a database
    upgraded to 0.9.0 still had repair_proposals_status_check — which permits
    pending|approved|rejected|applied|failed and does NOT permit skipped. The migration's own
    UPDATE ... SET status = 'skipped' violated the constraint that was still standing, before the
    swap that replaces it ever ran; stigmergy-server exited 2 on every start with "cannot read the
    index (CheckViolation)". The legacy constraint is now dropped BEFORE the migration writes a value
    it does not permit — three steps, not two, because an UPDATE has to happen in between
  • the test covering that migration dropped the constraint first and its docstring claimed "that is
    the state the old release left the column in". That sentence was false, and it is why 0.9.0
    shipped green: the test constructed the one state in which the migration works. Its twin now
    starts where a real upgrade starts