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 thedomainstable, and both were timestamped BEFORE the migration that creates it. On an empty database the run aborted at 28 of 65 withBase 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
migrationstable, 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 whendomainsdoes not exist, andcreate_domains_tablecarries 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.xmldeclares sqlite:memory:, but a cached config (bootstrap/cache/config.php, written byphp artisan optimize) overrides it:config('database.default')keeps returning the real connection andenv()is never consulted again. Laravel'sRefreshDatabasethen runsmigrate: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 beforeparent::setUp(), because Laravel's ownsetUp()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\MigrationOrderTestasserts that no migration touches a table before one creates it, treating aSchema::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.phpis 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
ExampleTeststubs were the entire test suite until now. - Nothing in the application changed; this release is installability and test safety.