Skip to content

course_bulk_operations: entity declares columns the migration never creates #1202

Description

@RUKAYAT-CODER

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.

Metadata

Metadata

Assignees

Labels

GrantFox OSSIssue tracked in GrantFox OSSMaybe RewardedIssue may be eligible for a GrantFox rewardThird CampaignCampaign: Third Campaign

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions