Recurnix docs

Docs › Releases › 1.15 › Release notes

Recurnix 1.15 release notes

Released 2026-07-31. Recurnix 2.11 is newer.

Every proof in this project so far has been thrown away on purpose.

H1 through H9 were each demonstrated against the shipped code — the coupon race, the double-charged autopay, the impersonation takeover, the revoked colleague who kept their session. Each was proved with a probe, and each probe was deleted at the end of its release, because probes that linger become scenery.

The intention was always to turn them into Feature tests. It was not possible, and this release is about why.

RefreshDatabase needs a schema, and the schema could not be built

2026_07_20_000100_widen_transactions_type ......... FAIL
SQLSTATE[HY000]: General error: 1 near "MODIFY": syntax error

The first schema-changing migration used raw ALTER TABLE ... MODIFY — MySQL syntax, which nothing else parses. Two backfills in the ticket foundation were the same story: UPDATE ... JOIN ... and LPAD().

So Recurnix was portable everywhere except the one place that builds its own database. It runs on MySQL, and could only ever have run on MySQL, and nobody had said so out loud. The MODIFY is now the Schema builder, which emits MODIFY on MySQL and rebuilds the table on SQLite. The two JOIN backfills are correlated subqueries, which are standard SQL. LPAD() has no portable equivalent, so that padding happens in PHP now — a one-time upgrade backfill where a fresh install has no rows at all, so being right on every engine beats being fast on one.

And then the empty database

With the schema building, the tests still would not start:

SQLSTATE[HY000]: General error: 1 no such table: settings

Setting::allCached() assumed the table was there. That is not an unreasonable assumption on a running install — but Recurnix is downloaded and unzipped before it is installed, so the first request a customer ever makes arrives at an empty database, and so does every Feature test.

It now returns nothing, and each caller falls through to the default it already passes for a key that is simply absent. Deliberately outside the cache: storing that emptiness would have outlived the install and left the product permanently convinced it had no settings.

What that bought

tests/Feature/RevokedSubUserTest — the H9 proof, made permanent. An active colleague reaches the portal; a revoked one is signed out on their next request; a session pointing at a row that never existed fails closed; and the account owner is never touched. 117 committed tests, 416 assertions.

Two things worth admitting

A guard already sitting in tests/TestCase.php refuses to run the suite while a cached config exists, because it would override phpunit.xml and let RefreshDatabase drop the real database. It fired the first time a Feature test was ever run. It was written months before there was anything for it to protect, and it earned its keep on the first attempt.

And one failure along the way looked exactly like a product bug — the dashboard calling Currency::format(null) — and was not. credit_balance is NOT NULL DEFAULT 0; the null came from an in-memory model that had not been refreshed after create(). The fixture was wrong. It is worth checking which of the two you have before writing it up as the other.


Last modified: 16 November 2026 · This page documents Recurnix, self-hosted billing and automation. Ask a question.