Skip to content

OpenGraph 0.4.0: Ready for PhoenixKit 3 with a checkable schema

OpenGraph 0.4.0 makes the share image module work with PhoenixKit 3 and lets core’s doctor and repair tasks check its tables again. Nothing changes in the admin or on public pages.

Works with PhoenixKit 3

The requirement on core widens to 2.65.0 or later and below 4.0. PhoenixKit 3.0 no longer creates module tables itself. OpenGraph has built its own two tables since 0.3.6, phoenix_kit_og_templates and phoenix_kit_og_assignments, so it keeps working on core 3. The floor is 2.65.0 because that is the first core with the file_references/0 and expected_schema/0 module callbacks, which this release now marks as implementations of PhoenixKit.Module.

Doctor and repair check the tables

The module now describes its tables, columns, keys and indexes to core through expected_schema/0. The description is generated from the module’s migrations, not written by hand, so it matches what the migrations build. mix phoenix_kit.doctor and mix phoenix_kit.repair read that description, so they check the OpenGraph tables from the module’s own migrations instead of core’s list. Repair only adds what is missing and reports anything else, and it checks the tables only while the database is at the module’s current migration version. Core uses this from the first release after 2.64.1; older cores ignore it.

Upgrading

Update core to 2.65.0 or later first, then update phoenix_kit_og to ~> 0.4. No migration. If you are moving to PhoenixKit 3, this is the release to install with it. Run mix phoenix_kit.doctor afterwards to see the state of the two tables.

Full release notes: OpenGraph 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 the file_references/0 and expected_schema/0 callbacks, which now carry @impl PhoenixKit.Module.

Added

  • The module supplies the manifest of its 1 tables (expected_schema/0, PhoenixKitOG.ExpectedSchema), so mix phoenix_kit.repair and mix phoenix_kit.doctor check and repair them again, now from the module’s own chain instead of core’s manifest. Generated from PhoenixKitOG.Migrations by core’s dev_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.

OpenGraph 0.4.0. Install or update: {:phoenix_kit_og, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.