Skip to content

IBX-11939: Ignored index prefix lengths only outside MySQL in the schema alignment test - #85

Merged
Steveb-p merged 1 commit into
6.0from
IBX-11939-prefix-lengths-6.0
Nov 10, 2026
Merged

Steveb-p merged 1 commit into
6.0from
IBX-11939-prefix-lengths-6.0

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator
🎫 Issue IBX-11939

Related PRs:

Description:

ibexa/doctrine-schema#61 passes the index prefix lengths schema.yaml gives 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, and SchemaAlignmentNormalizationTest expects only PostgreSQL and SQLite to read alignment_prefix_length back 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.

@Steveb-p
Steveb-p marked this pull request as ready for review November 4, 2026 10:26
@Steveb-p
Steveb-p requested a review from a team November 4, 2026 10:44
@ibexa-workflow-automation-1
ibexa-workflow-automation-1 Bot removed the request for review from a team November 4, 2026 10:44
@Steveb-p
Steveb-p added this pull request to stack #86 November 5, 2026 08:39
Base automatically changed from merge/5.0-to-6.0 to 6.0 November 5, 2026 13:06
AbstractPlatform $platform
): void {
$columns = $index->getIndexedColumns();
$hasLengths = array_filter($columns, static fn (IndexedColumn $column): bool => $column->getLength() !== null);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Steveb-p force-pushed the IBX-11939-prefix-lengths-6.0 branch from cabc1a7 to 0116507 Compare November 10, 2026 12:48
@Steveb-p
Steveb-p merged commit 70647c7 into 6.0 Nov 10, 2026
9 checks passed
@Steveb-p
Steveb-p deleted the IBX-11939-prefix-lengths-6.0 branch November 10, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants