Skip to content

PhoenixKit 1.7.193: Supplier and client roles for CRM parties

PhoenixKit 1.7.193 adds the database table the CRM module needs to mark an existing company or contact as a supplier, a client or another commercial role.

Migration V148 creates phoenix_kit_crm_party_roles. One party can hold several roles at once, each with its own start and end date, an active flag and its own metadata. No change for sites without the CRM module beyond the new empty table. The migration’s id default is written so it also works on installs in their own database schema.

Upgrading

Run mix phoenix_kit.update for V148.

Full release notes: PhoenixKit 1.7.193

1.7.193 · 14 July 2026

Added

  • V148: phoenix_kit_crm_party_roles table for the phoenix_kit_crm module — a polymorphic role edge marking an existing CRM company or contact as supplier, client, or another commercial counterparty role (a party can hold several roles at once). No FK on the polymorphic (roleable_type, roleable_uuid) pair; valid_from/valid_to lifecycle, is_active filter, role-scoped metadata.

Fixed

  • V148’s uuid column DEFAULT now schema-qualifies uuid_generate_v7() with the install prefix (matching V138/V144) — the unqualified call would have resolved via search_path and failed on named-schema installs.

PhoenixKit 1.7.193. Install or update: {:phoenix_kit, "~> 1.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.