Three places disagree on the full-text search column on course:
- Migration
1783000000003-add-course-full-text-search.ts creates search_vector (snake_case)
- Entity
Course.searchVector declares the column as searchVector (camelCase, no explicit name) with generatedType: 'STORED'
- App raw SQL (
src/search/search.service.ts) queries course.search_vector (snake_case)
The entity column maps to a DB column named searchVector, which does not exist — the entity can never read the generated column, and the schema drift check wants to drop search_vector and create searchVector.
Fix: declare the entity column with name: 'search_vector' (keeping the property name searchVector), and align the asExpression with the migration's expression. This also removes a chunk of the known drift snapshot in #1194.
Three places disagree on the full-text search column on
course:1783000000003-add-course-full-text-search.tscreatessearch_vector(snake_case)Course.searchVectordeclares the column assearchVector(camelCase, no explicitname) withgeneratedType: 'STORED'src/search/search.service.ts) queriescourse.search_vector(snake_case)The entity column maps to a DB column named
searchVector, which does not exist — the entity can never read the generated column, and the schema drift check wants to dropsearch_vectorand createsearchVector.Fix: declare the entity column with
name: 'search_vector'(keeping the property namesearchVector), and align theasExpressionwith the migration's expression. This also removes a chunk of the known drift snapshot in #1194.