Customer Support 0.5.0: Works with PhoenixKit 3
Customer Support 0.5.0 makes the support ticket module work with PhoenixKit 3. It now tells core itself which stored files belong to tickets and which tables to check, which core used to know on its own.
Ticket files and the orphan check
Core’s orphan-file check needs to know which stored files are still in use. The module now supplies that itself: a file attached to a ticket or a reply counts as used. The rule is the same one core applied before, moved into the module, so nothing new is treated as an orphan.
Doctor and repair
The module now gives core the list of its four tables, so mix phoenix_kit.doctor and mix phoenix_kit.repair check them from the module rather than from core. Repair only adds what is missing and reports the rest. It checks the tables only while the database is at the module’s current migration version.
Upgrading
Customer Support 0.5 needs PhoenixKit 2.65.0 or later and runs on any 3.x release. PhoenixKit 3.0 no longer creates the ticket tables; the module’s own migration does. No migration in this release: update the dependency and run mix phoenix_kit.update as usual.
Full release notes: Customer Support 0.5.0
0.5.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 now tells core’s orphan-file check which of its rows point at a stored file (
file_references/0, inFileReferences):phoenix_kit_ticket_attachments. The SQL moved here verbatim from core’sPhoenixKit.Modules.Storage; a test compares it with core’s own copy. Core reads the callback from the first release after 2.64.1; before that, core’s own list stays in force. No migration, no change in what counts as an orphan. - The module supplies the manifest of its 4 tables (
expected_schema/0,PhoenixKitCustomerSupport.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 fromMigrationsby 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.
Customer Support 0.5.0. Install or update: {:phoenix_kit_customer_support, "~> 0.5"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.