CourseBulkOperation (src/courses/entities/bulk-operation.entity.ts) declares version (@VersionColumn), reason, notes, and undoneById, but migration 1748600000000-add-course-bulk-operations.ts creates the table without those columns.
The schema drift check wants to ADD them (see #1194). More importantly, any code path that writes notes/reason/undoneById or relies on optimistic-lock version will fail against a database built from migrations (or dev synchronize creates them with auto-generated names).
Fix: add the missing columns (with the same names/types as the entity) to the creating migration, or remove the unused entity columns.
CourseBulkOperation(src/courses/entities/bulk-operation.entity.ts) declaresversion(@VersionColumn),reason,notes, andundoneById, but migration1748600000000-add-course-bulk-operations.tscreates the table without those columns.The schema drift check wants to
ADDthem (see #1194). More importantly, any code path that writesnotes/reason/undoneByIdor relies on optimistic-lockversionwill fail against a database built from migrations (or devsynchronizecreates them with auto-generated names).Fix: add the missing columns (with the same names/types as the entity) to the creating migration, or remove the unused entity columns.