Skip to content

IBX-11939: Merged branch '5.0' into 6.0 - #84

Merged
Steveb-p merged 5 commits into
6.0from
merge/5.0-to-6.0
Nov 5, 2026
Merged

Steveb-p merged 5 commits into
6.0from
merge/5.0-to-6.0

Conversation

@Steveb-p

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

Copy link
Copy Markdown
Collaborator

Caution

This is a merge pull request

🎫 Issue IBX-11939

Related PRs:

Conflict resolutions (AbstractSchemaAlignmentTestCase and its two tests, which 6.0 rewrote for DBAL 4's schema editors):

#81's session handler parameter comes in as is; core 6.0 still defaults ibexa.session.handler_id to session.handler.native_file.

On top of the merge, one 6.0-only commit: decimal defaults are compared as numbers. schema.yaml gives ibexa_customer_group.global_price_rate's default as 0, the databases read it back as '0.00' (MySQL, MariaDB) or '0' (PostgreSQL, SQLite), and DBAL 4 compares columns by their declaration, where the number isn't quoted and the string is. Neither DBAL's platform comparators nor a string default in schema.yaml would help: the former only normalize collations, and the latter would just move the difference to PostgreSQL and SQLite. It made SchemaAlignmentTest fail on both install paths in every kernel with product-catalog (e.g. measurement's MySQL jobs). DBAL 3 didn't report it, so 5.0 needs nothing.

Checked locally: unit tests, PHPStan, CS, and the integration suite on SQLite, MySQL 8.0, MariaDB 10.11 and PostgreSQL 16.

Core points session.handler at its native file handler, whose constructor calls
ini_set(). On Symfony 7, Doctrine's PdoSessionHandlerSchemaListener loads the handler
whenever the ORM schema is generated, so a test that builds the schema (e.g.
AbstractSchemaAlignmentTestCase in a package with ORM entities) fails once PHPUnit has
printed output: "Session ini settings cannot be changed after headers have already
been sent". Sessions are mocked in the test kernel, so the plain native handler does.
…hema alignment test (#82)

MySQL can't store a default on a TEXT or BLOB column, so DBAL creates the column without the
declared one. DBAL 2.13 left the difference out of its ALTER statements; DBAL 3's comparator
reports it as 'ALTER TABLE ibexa_catalog CHANGE query_string query_string LONGTEXT NOT NULL',
which changes nothing. MariaDB stores the default, so it's still compared there.
@Steveb-p Steveb-p added the Fast-forward merge PR should be merged in a fast-forward way label Nov 3, 2026
…nt test

schema.yaml gives a decimal column's default as a number, like
ibexa_customer_group.global_price_rate's 0, while the databases read it back
as a string: '0.00' on MySQL and MariaDB, '0' on PostgreSQL and SQLite. DBAL 4
compares columns by their declaration, where the number isn't quoted and the
string is, so the column was reported on every platform. DBAL 3 didn't
report it.
@Steveb-p
Steveb-p merged commit f516961 into 6.0 Nov 5, 2026
18 checks passed
@Steveb-p
Steveb-p deleted the merge/5.0-to-6.0 branch November 5, 2026 13:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Fast-forward merge PR should be merged in a fast-forward way Ready for review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants