Conversation
The previous migration used:
$table->unsignedTinyInteger('orchestrator_priority')
->default(50)->nullable()->change();
->change() delegates to Doctrine DBAL to introspect the existing column
type before rewriting it. Doctrine does not have a registered mapping for
MySQL's TINYINT, so it throws:
Unknown column type "tinyinteger" requested. Any Doctrine type that
you use has to be registered with Doctrine\DBAL\Types\Type::addType().
Fix: replace the Blueprint::change() call with a raw DB::statement()
ALTER TABLE that modifies the column directly. This is fully portable
across all MySQL/MariaDB versions supported by Fleetbase and has no
dependency on Doctrine DBAL type mappings.
feat(i18n): Add Spanish (Panama) translation [es-pa]
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.
Problem
The migration
2026_04_20_000001_make_orchestrator_priority_nullable_on_orders_tableshipped in the previous PR crashes on deployment with:Root Cause
Blueprint::change()delegates to Doctrine DBAL to introspect the existing column definition before rewriting it. Doctrine does not have a registered type mapping for MySQL's nativeTINYINT, so it throws thetinyintegererror when it tries to describe the column.Fix
Replace the
Blueprint::change()call with a rawDB::statement()ALTER TABLEthat modifies the column directly:This is fully portable across all MySQL/MariaDB versions supported by Fleetbase and has no dependency on Doctrine DBAL type mappings. The
down()method is updated identically.Files Changed
server/migrations/2026_04_20_000001_make_orchestrator_priority_nullable_on_orders_table.phpSchema::table()->change()withDB::statement(ALTER TABLE …)in bothup()anddown()