KamoCRM

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

Fixkamo-shared-library
Ya
3 Agosti 2026, 21:06 UTC
Mwandishi
Kamo
Ahadi ya
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.

Mabadiliko yote

Je, unaona nini kuhusu usafiri?

Kila kitu kinaingia kwenye tovuti yako mwenyewe. Anza kwenye mpango wa bure na usome ukurasa huu tena katika mwezi mmoja.

Kuwa Huru MileleMtazamo wa bei