Field Schema issue in 4.2.23

Created on 16 February 2023, almost 2 years ago

Problem/Motivation

Seems like I introduced a schema issue in Add an equal height setting Fixed :

Entity/field definitions
Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Paragraph

The paragraph.field_paragraph_settings field needs to be updated.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

🐛 Bug report
Status

Fixed

Version

4.0

Component

Code

Created by

🇩🇪Germany Anybody Porta Westfalica

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

Comments & Activities

  • Issue created by @Anybody
  • 🇩🇪Germany Anybody Porta Westfalica

    Typically the update hook should have updated the schema:

    /**
     * Add further columns: equal_height_group.
     */
    function drowl_paragraphs_update_8306() {
      $field_type = 'drowl_paragraphs_settings';
      $columns_to_add = ['equal_height_group'];
      return _field_type_schema_column_add_helper($field_type, $columns_to_add);
    }
    

    Unsure, why that didn't work...

  • 🇩🇪Germany Anybody Porta Westfalica

    Also the log says:

    Warning: Undefined property: stdClass::$field_paragraph_settings_equal_height_group in Drupal\Core\Entity\Sql\SqlContentEntityStorage->loadFromDedicatedTables() (Zeile 1267 in /web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php)

  • 🇩🇪Germany Anybody Porta Westfalica

    Ok found it! I forgot to add equal_height_group in
    src/Plugin/Field/FieldType/DrowlParagraphsSettingsItem.php

    I'll fix that.

  • @anybody opened merge request.
  • Issue was unassigned.
  • Status changed to Needs review almost 2 years ago
  • 🇩🇪Germany Anybody Porta Westfalica
  • Status changed to Fixed almost 2 years ago
    • Anybody committed ed319456 on 4.x
      Issue #3342421 by Anybody: Field Schema issue in 4.2.23
      
  • 🇩🇪Germany Anybody Porta Westfalica

    Fixed, I'll tag a new 4.2.24 release.

  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024