KamoCRM

Land the company phone toggle columns before EmailService reads them

FeatureInitializerService
Shipped
27 ஆகஸ்ட், 2026 அன்று 7:57 PM UTC
Author
Kamo
Commit
0491f6f

ADD COLUMN IF NOT EXISTS on **************** for user_company_phone_main and user_company_phone_toll_free. This service's ddl-auto: update would add both from the entity, but every service that reads them runs ddl-auto: none, and Hibernate's own ALTER carries no DEFAULT. Stating it here lands them FALSE for existing organizations rather than NULL, which is what "off by default" is supposed to mean. Order 0: the entity maps both columns from the moment this build starts, so a runner ordered after one that loads it through JPA would never execute — the earlier one would die on "column does not exist" and take the whole run with it.

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