mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 11:01:54 +00:00
Update worktree entry instead of erroring when it already exists
This commit is contained in:
parent
0817f905a2
commit
3190236396
1 changed files with 8 additions and 0 deletions
|
@ -1620,6 +1620,14 @@ where
|
|||
is_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);
|
||||
|
|
Loading…
Reference in a new issue