Use INSERT OR REPLACE for archived worktree records
Richard Feldman
created
The archived_git_worktrees table has a unique index on worktree_path.
A plain INSERT would fail if the same path was archived again. Using
INSERT OR REPLACE ensures the old record is replaced with the new
archive state.