Calendar 0.4.0: Own migration chain and support for core 3
Calendar 0.4.0 works with PhoenixKit core 3. The calendar’s two tables now belong to the module itself rather than to core, so mix phoenix_kit.repair and mix phoenix_kit.doctor can check them again.
The module owns its tables
Core 3.0 no longer creates the calendar tables. Calendar 0.4 brings its own migration chain, PhoenixKitCalendar.Migrations. Its first step, V1, adopts the two tables that core’s V141 created, exactly as a fresh install builds them. On an existing site nothing changes but a marker comment on the tables. Future changes to the calendar’s tables ship with the module.
The module also supplies a manifest of its tables (PhoenixKitCalendar.ExpectedSchema). Repair and doctor use it to check the calendar’s tables and to create anything missing; repair does not change what is already there.
Participants without Staff or CRM
The staff and CRM tables now belong to those modules. To find the events a user takes part in as a staff member or CRM contact, the calendar reads those tables only when they exist, so a site without Staff or CRM is not affected by their absence.
Upgrading
Calendar 0.4 accepts PhoenixKit core from 2.65.0 up to, but not including, 4.0. Run mix phoenix_kit.update and mix ecto.migrate so the module’s V1 marks the existing tables; no data changes. Nothing else changes on a live site.
Full release notes: Calendar 0.4.0
0.4.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. -
Tests build the tables the participant sources read but do not own (staff people, locations, CRM contacts and companies) by running those modules’ chains, which are now test-only dependencies (
phoenix_kit_staff,phoenix_kit_locations,phoenix_kit_crm). Hosts without them are unaffected. The external-items LiveView test uses its own source key, since the real CRM source is now discovered too. The transitional “core’s ExpectedSchema manifest” test is removed.
Added
- The module supplies the manifest of its 2 tables (
expected_schema/0,PhoenixKitCalendar.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 fromPhoenixKitCalendar.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,
PhoenixKitCalendar.Migrations(migration_module/0). V1 adopts the two calendar tables core’s chain creates (core’s V141), exactly as a fresh core install builds them, and stamps apkcal_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).
Calendar 0.4.0. Install or update: {:phoenix_kit_calendar, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.