Fix sqlite string manipulation workspace paths migration

This commit is contained in:
Max Brunsfeld 2025-08-25 15:30:34 -07:00
parent 5474a310f7
commit e7e8d65d78

View file

@ -608,9 +608,9 @@ impl Domain for WorkspaceDb {
sql!( sql!(
UPDATE workspaces UPDATE workspaces
SET paths = CASE 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( replace(
substr(paths, 2, length(paths) - 2), substr(paths, 3, length(paths) - 4),
'"' || ',' || '"', '"' || ',' || '"',
'\0' '\0'
) )