Locations 0.8.0: Ready for PhoenixKit 3, with a table check for repair and doctor
Locations 0.8.0 lets the PhoenixKit locations module run on PhoenixKit 3.x and describes its own four tables, so mix phoenix_kit.repair and mix phoenix_kit.doctor can check them again. Nothing changes on the admin pages.
Works with PhoenixKit 3
The module’s PhoenixKit requirement is now >= 2.65.0 and < 4.0.0. Before this release it stopped at 3.0, so a site could not move to PhoenixKit 3 while it used Locations.
PhoenixKit 3 no longer creates the module tables itself. That is not a problem here: since 0.5.0 the module has its own migrations, and they build its tables.
Repair and doctor know the module’s tables
The module now hands PhoenixKit a description of the tables its migrations create: locations, location types, the assignments between them, and spaces, with their keys, indexes and checks. mix phoenix_kit.repair and mix phoenix_kit.doctor use it to compare the database with what the module expects.
The description is generated from the module’s migrations rather than written by hand. Repair only adds what is missing and reports anything else it finds. It checks the tables only while the database is at the module’s current migration version, so a database that is behind is not compared against the newer shape. Run mix phoenix_kit.update first if the module’s migrations are not all applied.
Upgrading
Update the dependency; there is no migration. Locations 0.8 needs PhoenixKit 2.65.0 or later, so update core first if you are on an older 2.x. A site that stays on PhoenixKit 2.x sees no other change.
Full release notes: Locations 0.8.0
0.8.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 4 tables (
expected_schema/0,PhoenixKitLocations.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 fromPhoenixKitLocations.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.
Locations 0.8.0. Install or update: {:phoenix_kit_locations, "~> 0.8"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.