Staff 0.11.0: Its own migrations, a personal-details permission and core 3 support
Staff 0.11.0 lets the PhoenixKit staff directory run on core 3: the module now owns its database tables, the repair and doctor tasks check them again, and personal details such as birthdays get their own permission.
The module owns its tables
Core 3 stops creating module tables, so Staff now ships its own migration chain. Its first step adopts the seven staff tables core already built: departments, teams, people, team memberships, skills, person skills and employments. On an existing site every statement finds its table in place and does nothing; the only new thing is a version marker. On a site whose core no longer creates the tables, the same statements create them. The chain never drops a table, even when rolled back.
The module also describes its seven tables to core, so mix phoenix_kit.doctor and mix phoenix_kit.repair check them from the module’s own chain. Repair only adds what is missing and reports the rest.
Personal details behind a permission
The Staff permission gains a sub-permission, See and edit personal details, for date of birth, personal email and phone, emergency contact and private notes. Without it:
- the person page hides those fields;
- the person form does not show their inputs, and a save never writes or wipes them;
- the Overview shows no upcoming birthdays.
Nobody loses access on upgrade. Once, at boot, every role that already holds the Staff permission is granted the new one. A role created or given Staff later starts without it, and if an Owner revokes it, the grant is not repeated.
Upgrading
Staff 0.11 needs PhoenixKit core 2.65 or later and works up to core 3.x; it also needs Comments 0.5. Run mix phoenix_kit.update to apply the module’s migration. Nothing changes in the schema of an existing site. After the upgrade, check which roles should keep See and edit personal details: every role that had Staff now has it.
Full release notes: Staff 0.11.0
0.11.0 · 27 October 2026
Changed
- Core pin widened to
>= 2.65.0 and < 4.0.0: works with core 3.x (core 3.0 stops creating the module tables; this module’s own chain builds its tables). The floor is the first core with thefile_references/0andexpected_schema/0callbacks, which now carry@impl PhoenixKit.Module.
Added
- The module supplies the manifest of its 7 tables (
expected_schema/0,PhoenixKitStaff.ExpectedSchema), somix phoenix_kit.repairandmix phoenix_kit.doctorcheck and repair them again, now from the module’s own chain instead of core’s manifest. Generated fromPhoenixKitStaff.Migrationsby core’sdev_docs/squash/generate_module_manifest.exs, never edited by hand. Core uses it from the first release after 2.64.1; before that nothing reads it. Repair is additive (it creates what is missing and reports the rest) and checks the tables only while the database is at the chain’s current version. No migration. - The module’s own migration chain,
PhoenixKitStaff.Migrations(migration_module/0). V1 adopts the seven staff tables core’s chain creates, exactly as a fresh core install builds them, and stamps apkstf_schema:1marker. Nothing changes on an existing install but the marker; from now on a change to these tables ships here instead of in core. A test proves the chain builds the tables without core (core’sPhoenixKit.TestSupport.ModuleChainCheck).
Staff 0.11.0. Install or update: {:phoenix_kit_staff, "~> 0.11"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.