Manufacturing 0.4.5: Number fields take a comma or a dot, and its own migrations
Manufacturing 0.4.5 makes the number fields on the machine form accept both a comma and a dot, and gives the module its own migration chain for its three tables.
The spec fields a machine type adds to the machine form, when they are numbers, now use PhoenixKit’s shared decimal input instead of the browser’s number control. A value is no longer lost because of the page’s language. Numbers are stored in one form, so 2,5 becomes 2.5. Blank or unreadable text is still stored as typed.
The module’s first migration adopts the machines table and its two link tables exactly as core made them and records version 1. No column or row changes.
Upgrading
Run mix phoenix_kit.update to record the migration version. The new input needs PhoenixKit 2.26.0 or later, while the declared requirement stays at ~> 2.0, so upgrade core too if it is older.
Full release notes: Manufacturing 0.4.5
0.4.5 · 16 September 2026
Added
PhoenixKitManufacturing.Migrations— this module now owns and versions the future shape of its 3 tables (phoenix_kit_machines,phoenix_kit_machine_type_assignments,phoenix_kit_machine_operations) via its own migration chain, the same pattern already shipped forphoenix_kit_posts,phoenix_kit_dashboards,phoenix_kit_warehouseandphoenix_kit_customer_support.V1adopts core’s currentV144shape exactly and stamps apkm_schema:1marker onphoenix_kit_machines— a pure Phase-0 adoption with no shape change of any kind (unlikephoenix_kit_customer_support‘s V1, there is no analogous nullability correction here: V144’s source, core’sExpectedSchemamanifest, and a live database all already agree on all 3 tables’ shape).phoenix_kit_machineshas never carried aCOMMENTbefore — the previously-published 0.2.0 module tracked its own version by structural probing, not a table comment — sopkm_schema:1is the first one stamped there.PhoenixKitManufacturing.Schemas.Machine.column_widths/0is now the single shape authority for both the chain’s DDL andchangeset/2’s own length validations.
Changed
- Number-type spec fields on the machine form (from a machine type’s
field_template) now use core’s<.decimal_input>instead of a browser number control. A comma and a dot both work, and a value is no longer lost because of the page locale. (#14) - Parseable number-type spec values are stored in one dot-decimal form
(
"2,5"→"2.5"). Blank or unparseable text is still stored as submitted. - Requires phoenix_kit ≥ 2.26.0 at compile time, the first release with
PhoenixKitWeb.Components.Core.DecimalInputandPhoenixKit.Utils.Number.parse_decimal/2. The Hex requirement stays at~> 2.0(repo policy, seetest/core_pin_conformance_test.exs), so a host on an older core must upgrade core too.
Manufacturing 0.4.5. Install or update: {:phoenix_kit_manufacturing, "~> 0.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.