Support JSON fields in MySQL schema

Created on 28 May 2020, over 4 years ago
Updated 27 July 2023, over 1 year ago

Problem/Motivation

MySQL and MariaDb (sort of) supports JSON fields.

We don't have the type defined in \Drupal\Core\Database\Driver\mysql\Schema::getFieldTypeMap() which makes working with them trickier than it should be.

There's https://www.drupal.org/project/json_field but if you use that and then try to use the DbDumpCommand it breaks because we're missing information in the schema type map.

Proposed resolution

Add the information to the schema type map.

Remaining tasks

Add a test.

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

Feature request
Status

Closed: duplicate

Version

11.0 🔥

Component
Base 

Last updated about 13 hours ago

Created by

🇬🇧United Kingdom alexpott 🇪🇺🌍

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024