KamoCRM

Drop CountryTypeConverter from EmbAddress.country

Fixkamo-shared-library
Shipped
10 மே, 2026 அன்று 8:04 PM UTC
Author
Kamo
Commit
f76e145

The converter writes the enum name (e.g. "UNITED_STATES") as a String, but every table embedding EmbAddress (orgs, users, members, user_addresses, account_addresses, member_team_member_lic_locs, commerce_orders, commerce_draft_orders, commerce_shipments) has country as smallint. CockroachDB rejects the string with "could not parse \"UNITED_STATES\" as type int", aborting org creation via /api/security/org. Removing the @Convert lets Hibernate fall back to the JPA default ordinal mapping, which matches the existing smallint data (186 = UNITED_STATES) and the unannotated User.country field that already worked. The converter remains in place for Lead.country (text column), where it is correct.

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