Cannot delete a field which uses JSON type

Created on 14 November 2024, about 1 month ago

Problem/Motivation

When trying to uninstall Experience Builder, it crashes with "Unable to parse the column type JSON".

That's because \Drupal\sqlite\Driver\Database\sqlite\Schema::getFieldTypeMap does not contain a mapping for JSON fields. No other driver errors for this. That's because \Drupal\sqlite\Driver\Database\sqlite\Schema::introspectSchema is SQLite specific.

So when deleting the field it crashes.

Steps to reproduce

Install XB or any field using json type. Try to uninstall or delete field. It crashes

         'pgsql_type' => 'jsonb',
          'mysql_type' => 'json',
          'sqlite_type' => 'json',
          'not null' => FALSE,

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

🐛 Bug report
Status

Active

Version

11.1 🔥

Component

sqlite db driver

Created by

🇺🇸United States mglaman WI, USA

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