Repository navigation
[3.0] Imports the schema namespace FixDates now names - #9644
Merged
Sesquipedalian merged 1 commit intoSep 6, 2026
Merged
Sesquipedalian merged 1 commit into
Sesquipedalian merged 1 commit into
Conversation
FixDates asks whether the holidays table is still there before touching it, and since c114b26 it asks by constructing Schema\v2_1\CalendarHolidays and calling exists() on it. The file has no `use SMF\Db\Schema;`, so that name resolves relative to the current namespace, to SMF\Maintenance\Migration\v2_1\Schema\v2_1\CalendarHolidays, which is nothing at all. The upgrade therefore ends at the sixth substep of the migration step with "Class ... not found", and since every attempt gets exactly as far, a 2.1 forum cannot be upgraded. CalendarUpdates, changed in the same commit to do the same thing, has the import and is unaffected. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: albertlast <mathiaspapealbert@hotmail.com>
Sesquipedalian
approved these changes
Sep 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
A 2.1 forum cannot be upgraded on
release-3.0at the moment. The upgrade stops at the sixth substep of the migration step:FixDateschecks whether the holidays table is still there before touching it, and since c114b26 it does so by constructingSchema\v2_1\CalendarHolidaysand callingexists(). The file has nouse SMF\Db\Schema;, so the name resolves relative to the current namespace —SMF\Maintenance\Migration\v2_1\Schema\v2_1\CalendarHolidays— which does not exist.CalendarUpdateswas changed in the same commit to do the same thing and does have the import, which is why only this one file fails.Every attempt reaches exactly the same substep, so this is not recoverable by retrying.
How this was verified
Against the 2.1.7 baseline from the 2.1 development environment, using
.docker/rerun-upgrade.shfrom #9622:Note that the upgrade completing is not the same as it being correct — see the separate report about the migration batches, which this fix uncovers rather than causes.
Not reachable from the unit suite
tests/bootstrap.phpprovides no database, and the code path is a migration doing nothing but talk to one. It is also not somethingphplintcan see, since the class name is only resolved at runtime. Running an upgrade is what catches it.Issues References (Fixes|Related|Closes)
🤖 Generated with Claude Code