Repository navigation
IBX-11939: Skipped the MariaDB JSON conversion on columns already in 6.0's form - #876
Merged
Steveb-p merged 1 commit intoOct 9, 2026
Conversation
This was referenced Oct 8, 2026
Steveb-p
force-pushed
the
feature/fix-schema-rename-migration-6.0-postgres
branch
from
October 8, 2026 19:43
208d6b0 to
ffc1f3b
Compare
Steveb-p
force-pushed
the
feature/schema-migration-guards-6.0
branch
from
October 8, 2026 19:43
370574e to
1375121
Compare
…6.0's form A database installed with SchemaBuilderEvent on 6.0 and migrated later has these columns in 6.0's form already, so the conversion has nothing to do there. The check uses the schema Doctrine Migrations passes in: Doctrine DBAL 4 reads MariaDB's json_valid() check as the JSON type and returns the column comment as it is.
Steveb-p
force-pushed
the
feature/fix-schema-rename-migration-6.0-postgres
branch
from
October 9, 2026 09:27
ffc1f3b to
464c5c2
Compare
Steveb-p
force-pushed
the
feature/schema-migration-guards-6.0
branch
from
October 9, 2026 09:27
1375121 to
e789499
Compare
|
Steveb-p
marked this pull request as ready for review
October 9, 2026 10:36
Steveb-p
merged commit Oct 9, 2026
969cb77
into
feature/fix-schema-rename-migration-6.0-postgres
25 checks passed
Steveb-p
added a commit
that referenced
this pull request
Oct 9, 2026
…6.0's form (#876) * IBX-11939: Skipped the MariaDB JSON conversion on columns already in 6.0's form A database installed with SchemaBuilderEvent on 6.0 and migrated later has these columns in 6.0's form already, so the conversion has nothing to do there. The check uses the schema Doctrine Migrations passes in: Doctrine DBAL 4 reads MariaDB's json_valid() check as the JSON type and returns the column comment as it is.
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.



Note
Parked as a draft, to come back to later.
Related PRs:
Description:
Brings back a check before
ConvertMariaDbJsonColumnsTo6_0Migrationrunssql/convert-json-columns-to-6-0-mariadb.sql.Doctrine Migrations isn't mandatory on 6.0 yet, so a site installed through
SchemaBuilderEventcan runibexa:doctrine:migrations:migratelater. Its columns are in 6.0's form already, so theMODIFYstatements change nothing: on MariaDB 10.11 they're all accepted withALGORITHM=INSTANT, andSHOW CREATE TABLEstays byte-identical. Still, each one is anALTER TABLEthat briefly takes an exclusive metadata lock, and it waits behind any long-running transaction on that table. With the check, those sites get noALTERat all.The check uses the
SchemaDoctrine Migrations passes toup(), with no MariaDB-specific query. Doctrine DBAL 4 reads MariaDB'sjson_valid()check as the JSON type and returns the column comment as it is, which tells the three shapes apart:getType()getComment()TextType(DC2Type:json)JsonType(DC2Type:json)JsonTypeThe tables are in that
Schemabecause both ways Ibexa runs migrations lift core's schema assets filter:ibexa:installitself, andibexa:doctrine:migrations:*with ibexa/doctrine-migrations#23.The trade-off: a fresh migrations install skips the statements as well, because it creates the columns in their final form. So nothing that only checks fresh installs, such as the schema alignment test if it ever runs on MariaDB, covers the SQL file anymore.
Checked on MariaDB 10.11 by running the migrations directly: skipped on fresh 6.0 installs through either path and on a re-run, run on 5.0 and 4.6 databases (identical to a fresh 6.0 install afterwards, data kept), and invalid JSON still fails the conversion.