Recurnix docs

Docs › Releases › 1.06 › Changelog

Recurnix 1.06 changelog

Every change in 1.06, by kind. For what it means and whether to update, read the release notes.

Fixed

  • A fresh install could not complete php artisan migrate. Two migrations altered the domains table, and both were timestamped BEFORE the migration that creates it. On an empty database the run aborted at 28 of 65 with Base table or view not found: domains. It never showed on a developed database, where the table was already there and every run since had been additive - so the product was un-installable and nothing in the workflow could see it.
  • Renaming the migration was not the fix. An existing install has it recorded in its migrations table, so a rename makes Laravel treat it as pending, re-run it and fail on a duplicate column. Instead the early migration is now a no-op when domains does not exist, and create_domains_table carries the column. Fresh installs and existing ones both end up with exactly one copy of it.
  • Proved by migrating a genuinely empty database end to end: 28/65 and abort before, 65/65 with the column present after.

Security

  • Running the test suite could destroy the live database. phpunit.xml declares sqlite :memory:, but a cached config (bootstrap/cache/config.php, written by php artisan optimize) overrides it: config('database.default') keeps returning the real connection and env() is never consulted again. Laravel's RefreshDatabase then runs migrate:fresh - drop every table, re-migrate - against the operator's billing data. One command, no confirmation, nothing to undo.
  • Tests\TestCase::setUp() now refuses to run if a cached config exists or if the connection is not sqlite. The check runs before parent::setUp(), because Laravel's own setUp() is what boots the testing traits - a check after it has already lost - and it uses raw superglobals and a plain path, because there is no application to ask yet.

Added

  • The first real test in tests/. Tests\Unit\MigrationOrderTest asserts that no migration touches a table before one creates it, treating a Schema::hasTable() guard as legitimate. It is plain PHPUnit - it never boots the application or opens a connection - so it is fast and can never itself be the thing that breaks a database. It fails on the bug above and passes on the fix.
  • Laravel's stock tests/Feature/ExampleTest.php is removed: it asserted that / returns 200, which cannot hold against an empty sqlite database, and it was only ever passing because the cached config pointed it at the real one.

Notes

  • The two ExampleTest stubs were the entire test suite until now.
  • Nothing in the application changed; this release is installability and test safety.

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