Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Update worktree entry instead of erroring when it already exists
Antonio Scandurra31902363968c
diff --git a/crates/collab/src/db.rs b/crates/collab/src/db.rsindex e503188e1dc..44cc382ee00 100644--- a/crates/collab/src/db.rs+++ b/crates/collab/src/db.rs@@ -1620,6 +1620,14 @@ whereis_ignored)VALUES {params}+ ON CONFLICT (project_id, worktree_id, id) DO UPDATE SET+ is_dir = excluded.is_dir,+ path = excluded.path,+ inode = excluded.inode,+ mtime_seconds = excluded.mtime_seconds,+ mtime_nanos = excluded.mtime_nanos,+ is_symlink = excluded.is_symlink,+ is_ignored = excluded.is_ignored");let mut query = sqlx::query(&query);