KamoCRM

Pin option FK column definitions so they do not inherit gen_random_uuid()

Fixkamo-shared-library
Shipped
3 ஆகஸ்ட், 2026 அன்று 9:06 PM UTC
Author
Kamo
Commit
987cf30

Hibernate copies the referenced id's columnDefinition onto a new @JoinColumn, so quote_id and option_id were both created DEFAULT gen_random_uuid(). An insert that omits the parent then invents one instead of failing. Pinning columnDefinition to plain UUID stops it recurring on any fresh database.

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