Problem/Motivation

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

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

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

Anybody created an issue. See original summary.

anybody’s picture

Priority: Normal » Major

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...

anybody’s picture

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)

anybody’s picture

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

I'll fix that.

anybody’s picture

Assigned: anybody » Unassigned
Status: Active » Needs review
anybody’s picture

Status: Needs review » Fixed

Fixed, I'll tag a new 4.2.24 release.

  • Anybody committed ed319456 on 4.x
    Issue #3342421 by Anybody: Field Schema issue in 4.2.23
    

Status: Fixed » Closed (fixed)

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