Repository navigation
IBX-11939: Ignored index prefix lengths only outside MySQL in the schema alignment test - #85
Merged
Merged
Conversation
konradoboza
approved these changes
Nov 4, 2026
ibexa-workflow-automation-1
Bot
requested review from
ViniTou,
alongosz,
barw4,
bnowak,
ciastektk,
mikadamczyk,
tbialcz and
wiewiurdp
November 4, 2026 13:32
bnowak
approved these changes
Nov 9, 2026
| AbstractPlatform $platform | ||
| ): void { | ||
| $columns = $index->getIndexedColumns(); | ||
| $hasLengths = array_filter($columns, static fn (IndexedColumn $column): bool => $column->getLength() !== null); |
There was a problem hiding this comment.
nitpick: this check could be replaced with array_any
…ema alignment test ibexa/doctrine-schema#61 passes the prefix lengths schema.yaml gives as strings as integers, so MySQL and MariaDB no longer read them back differently. Only the platforms that don't store them still need them left out.
Steveb-p
force-pushed
the
IBX-11939-prefix-lengths-6.0
branch
from
November 10, 2026 12:48
cabc1a7 to
0116507
Compare
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.
Related PRs:
Description:
ibexa/doctrine-schema#61 passes the index prefix lengths
schema.yamlgives as strings (lengths: ['191']) as integers. MySQL and MariaDB then read them back the same way they were declared, so the prefix length rule only has to leave them out on the platforms that don't store them, andSchemaAlignmentNormalizationTestexpects only PostgreSQL and SQLite to readalignment_prefix_lengthback differently.It has to land right after ibexa/doctrine-schema#61: with that one in, #84's normalization test fails on MySQL and MariaDB, while #84 itself has to land first, as the 6.0 merge-ups are tested against it without #61. The integration suite passes on MySQL 8.0, MariaDB 10.11, PostgreSQL 16 and SQLite with #61 installed.