Skip to content

Add V100 staff tables and V101 projects tables migrations - #498

Merged
ddon merged 1 commit into
BeamLabEU:devfrom
mdon:dev
Apr 19, 2026
Merged

Add V100 staff tables and V101 projects tables migrations#498
ddon merged 1 commit into
BeamLabEU:devfrom
mdon:dev

Conversation

@mdon

@mdonmdon commented Apr 19, 2026

Copy link
Copy Markdown
Contributor

V100 creates the four staff tables (phoenix_kit_staff_departments, phoenix_kit_staff_teams, phoenix_kit_staff_people, phoenix_kit_staff_team_memberships) used by the new phoenix_kit_staff module — UUIDv7 PKs, cascading deletes dept → team → memberships and user → person → memberships.

V101 creates the five projects tables (phoenix_kit_project_tasks, phoenix_kit_project_task_dependencies, phoenix_kit_projects, phoenix_kit_project_assignments, phoenix_kit_project_dependencies) used by phoenix_kit_projects. Assignment/task templates carry a polymorphic assignee (team/department/person) and a CHECK (num_nonnulls(...) <= 1) constraint enforces at-most-one assignee on both tables. V101 depends on V100 for the assignee FKs.

Bumps @current_version 99 → 101 and extends the moduledoc changelog.

V100 creates the four staff tables (`phoenix_kit_staff_departments`,
`phoenix_kit_staff_teams`, `phoenix_kit_staff_people`,
`phoenix_kit_staff_team_memberships`) used by the new `phoenix_kit_staff`
module — UUIDv7 PKs, cascading deletes dept → team → memberships and
user → person → memberships.
V101 creates the five projects tables (`phoenix_kit_project_tasks`,
`phoenix_kit_project_task_dependencies`, `phoenix_kit_projects`,
`phoenix_kit_project_assignments`, `phoenix_kit_project_dependencies`)
used by `phoenix_kit_projects`. Assignment/task templates carry a
polymorphic assignee (team/department/person) and a
`CHECK (num_nonnulls(...) <= 1)` constraint enforces at-most-one assignee
on both tables. V101 depends on V100 for the assignee FKs.
Bumps @current_version 99 → 101 and extends the moduledoc changelog.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ddon
ddon merged commit f991f0b into BeamLabEU:devApr 19, 2026
ddon pushed a commit that referenced this pull request Apr 19, 2026
ddon pushed a commit that referenced this pull request Apr 20, 2026
Covers three merged PRs since 1.7.98:
- #498: V100 staff + V101 projects migrations
- #499: MediaBrowser Embed macro, selection menu/bulk download, admin
attr, drag-drop file→folder move, toggleable search, drag-drop upload
at any folder level, unified sidebar/content card, site icon + tab
title + logo settings
- #500: V102 smart-catalogue + discount migration, multilang debounce
flow (attach_hook + client-side skeleton toggles), core form
class/wrapper_class realignment, CSS sources abs-path fix, Elixir
1.19 test filters, AGENTS.md core form + multilang docs + CHANGELOG
ownership rule
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@ddonddon mentioned this pull request Apr 20, 2026
3 tasks
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

@mdon@ddon