KamoCRM

Pin markedForReassignmentBy FK to INT8 (no inherited default)

Fixkamo-shared-library
Shipped
1 ஜூலை, 2026 அன்று 11:04 PM UTC
Author
Kamo
Commit
6373810

Without columnDefinition, Hibernate copies members.id (INT8 DEFAULT unique_rowid()), so CockroachDB backfilled existing leads rows with bogus member ids on ALTER ADD COLUMN, breaking the FK constraint. Pinning columnDefinition=INT8 avoids the inherited default. Prod already corrected (DROP DEFAULT + null orphan).

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing