"Drupal requires databases that support JSON storage" warning in drush updb when hasJson is true

Created on 25 June 2025, 13 days ago

Problem/Motivation

It makes sense to show this on the status page:

But do we need to warn every time on drush updb if that status is available?

This seems to have started in 11.2 in ddev with MariaDB 10.6 (which supports JSON) - ie, Database::getConnection()->hasJson() returns TRUE.

Steps to reproduce

Drupal 11.2, DDEV MariaDB 10.6, run drush updb.

Proposed resolution

Show the warning only if JSON is unavailable when running updates.

Remaining tasks

Merge request

User interface changes

No JSON warning shown when running updates when JSON is supported

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

N/A

🐛 Bug report
Status

Active

Version

11.2 🔥

Component

system.module

Created by

🇬🇧United Kingdom scott_euser

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024