Warehouse 0.7.0: Works with PhoenixKit 3, tables checked by doctor and repair
Warehouse 0.7.0 makes the PhoenixKit stock module ready for PhoenixKit 3: it accepts core 3.x, and it describes its own tables so the doctor and repair tasks can check them again.
Ready for PhoenixKit 3
The module now accepts PhoenixKit >= 2.65.0 and < 4.0.0. PhoenixKit 3 no longer creates the warehouse tables. The module’s own migration chain already builds all of them with CREATE TABLE IF NOT EXISTS, so on an empty database the chain creates them, and where core already made them nothing changes.
The module also answers its own API error. A stock tool asked to issue more than the warehouse holds still answers insufficient_stock with status 422, “Insufficient stock” and the advice to reduce the quantities listed in the reply. The wire values are the same as before.
Doctor and repair see the tables again
The module now hands core a manifest of its nine tables: stock, goods receipts, goods issues, internal orders, supplier orders, stocktakes, transfers, minimum stock and the photo inventory runs. mix phoenix_kit.doctor and mix phoenix_kit.repair read it to check these tables. Repair only adds what is missing and reports the rest, and it checks the tables only while the database is at the module’s current migration version.
Upgrading
Update core to 2.65.0 or later first. The module now also needs Billing 0.24, AI 0.27, Catalogue 0.50, Comments 0.5 and Locations 0.8 or later. There is no new migration, and nothing changes in the admin pages or in stock on a running site.
Full release notes: Warehouse 0.7.0
0.7.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 9 tables (
expected_schema/0,PhoenixKitWarehouse.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 fromPhoenixKitWarehouse.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.
Warehouse 0.7.0. Install or update: {:phoenix_kit_warehouse, "~> 0.7"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.