From e7e8d65d78202f8dca042b8332bf1beaff5d7b97 Mon Sep 17 00:00:00 2001 From: Max Brunsfeld Date: Mon, 25 Aug 2025 15:30:34 -0700 Subject: [PATCH] Fix sqlite string manipulation workspace paths migration --- crates/workspace/src/persistence.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/workspace/src/persistence.rs b/crates/workspace/src/persistence.rs index e00ed2d6e1..f2ac5f35bd 100644 --- a/crates/workspace/src/persistence.rs +++ b/crates/workspace/src/persistence.rs @@ -608,9 +608,9 @@ impl Domain for WorkspaceDb { sql!( UPDATE workspaces SET paths = CASE - WHEN substr(paths, 1, 2) = '[' || '"' AND substr(paths, -2, 2) = ']' || '"' THEN + WHEN substr(paths, 1, 2) = '[' || '"' AND substr(paths, -2, 2) = '"' || ']' THEN replace( - substr(paths, 2, length(paths) - 2), + substr(paths, 3, length(paths) - 4), '"' || ',' || '"', '\0' )