Skip to content

IBX-11939: Dropped the already-converted check from the MariaDB JSON conversion - #873

Open
Steveb-p wants to merge 1 commit into
5.0from
IBX-11939-json-conversion-check-5.0
Open

Steveb-p wants to merge 1 commit into
5.0from
IBX-11939-json-conversion-check-5.0

Conversation

@Steveb-p

@Steveb-p Steveb-p commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-11939

Related PRs:

Description:

ConvertMariaDbJsonColumnsMigration (from #787) checked whether ibexa_setting.value already had MariaDB's json_valid() check before running sql/convert-json-columns-mariadb.sql. That check isn't needed: re-stating the column's definition with MODIFY on a column already in that shape changes nothing, and MariaDB does it as an instant, metadata-only change (ALGORITHM=INSTANT is accepted; about 0.05 s on a 262k-row table on MariaDB 10.11). So the migration now just loads the file on MariaDB.

#787 is already merged, so this is a small PR of its own; the other packages got the same change on their still-open PRs.

Checked on MariaDB 10.11 by running the migrations directly: a 4.6 database converted to 5.0 ends up identical to a fresh 5.0 install with its data kept, a re-run leaves it unchanged, and invalid JSON still fails the conversion.

…conversion

Running the MODIFY statement on a column already in that shape changes nothing,
and MariaDB does it as an instant, metadata-only change, so the check bought
nothing. Raised in review on ibexa/activity-log#167.
@sonarqubecloud

sonarqubecloud Bot commented Oct 8, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant