Skip to content

V148: phoenix_kit_crm_party_roles table (unblocks phoenix_kit_crm #10) - #637

Merged
ddon merged 1 commit into
BeamLabEU:mainfrom
timujinne:feature/upstream-party-roles
Jul 14, 2026
Merged

V148: phoenix_kit_crm_party_roles table (unblocks phoenix_kit_crm #10)#637
ddon merged 1 commit into
BeamLabEU:mainfrom
timujinne:feature/upstream-party-roles

Conversation

@timujinne

Copy link
Copy Markdown
Contributor

Adds the core migration that creates phoenix_kit_crm_party_roles — the table backing phoenix_kit_crm's supplier/client party roles merged in phoenix_kit_crm#10. That PR's post-merge review flagged this as the one release-blocking gap: without the migration, the feature crashes at runtime.

Polymorphic role edge marking a CRM company or contact as supplier/client/partner (one party can hold several roles). No FK on roleable_uuid (polymorphic company-or-contact target), mirroring V138's interaction_parties.staff_person_uuid soft-ref; unique on (roleable_type, roleable_uuid, role). Idempotent up/down.

Rebased onto current main (V147). Full migration-chain integration test passes (V03→V148).

Ships the core migration that creates the phoenix_kit_crm_party_roles table
backing phoenix_kit_crm's supplier/client party roles (merged in
phoenix_kit_crm PR #10). Without it the CRM party-roles feature crashes at
runtime — the release-blocking finding from that PR's post-merge review.
Polymorphic role edge (a CRM company or contact holds supplier/client/partner
roles); no FK on roleable_uuid (polymorphic target); unique on
(roleable_type, roleable_uuid, role). Idempotent; rebased onto current main
(V147). Full migration-chain integration test passes (V03->V148).
@ddon
ddon merged commit 2813934 into BeamLabEU:mainJul 14, 2026
ddon pushed a commit that referenced this pull request Jul 14, 2026
V148's uuid DEFAULT called uuid_generate_v7() unqualified, which
resolves via search_path and fails on named-schema (prefixed)
installs since the function only exists inside the prefix schema.
Qualified with the prefix, matching V138/V144 precedent.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@timujinne
timujinne deleted the feature/upstream-party-roles branch August 6, 2026 05:55
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@timujinne@ddon