diff --git a/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-simplify-search-vector-expression.ts b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-simplify-search-vector-expression.ts index 27d75e213c..9ed6bb0f6a 100644 --- a/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-simplify-search-vector-expression.ts +++ b/packages/twenty-server/src/database/commands/upgrade-version/0-32/0-32-simplify-search-vector-expression.ts @@ -79,11 +79,10 @@ export class SimplifySearchVectorExpressionCommand extends ActiveWorkspacesComma fieldsUsedForSearch = SEARCH_FIELDS_FOR_OPPORTUNITY; break; } - default: { - throw new Error( - `search vector has unexpected standardId: ${searchVectorField.standardId}`, - ); - } + } + + if (fieldsUsedForSearch.length === 0) { + continue; } await this.searchService.updateSearchVector(