Entityqueue entity fails to import

Created on 4 October 2024, about 2 months ago

Problem/Motivation

After exporting an entityqueue and trying to import it on another site tome:import fails with a database error

[error] Drupal\Core\Database\IntegrityConstraintViolationException:
SQLSTATE[HY000]: General error: 1364 Field 'name' doesn't have a
default value: INSERT INTO "entity_subqueue" ("revision_id", "queue",
"uuid", "langcode") VALUES (:db_insert_placeholder_0,
:db_insert_placeholder_1, :db_insert_placeholder_2,
:db_insert_placeholder_3); Array
(
[:db_insert_placeholder_0] =>
[:db_insert_placeholder_1] => alumni
[:db_insert_placeholder_2] => cbd4523b-7178-4755-8935-708bec8026ac
[:db_insert_placeholder_3] => en
)
in
Drupal\mysql\Driver\Database\mysql\ExceptionHandler->handleExecutionEx
ception() (line 45 of
/builds/rogerpfaff/redacted/web/core/modules/mysql/src/Driver/Database/mys
ql/ExceptionHandler.php).

The database has the name field but it is not addressed in the query. At which point is the field name missing in the entityqueue module for the export/import to not have that?

💬 Support request
Status

Active

Version

1.12

Component

Tome Sync

Created by

🇩🇪Germany rogerpfaff Munich

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

Comments & Activities

  • Issue created by @rogerpfaff
  • 🇩🇪Germany rogerpfaff Munich

    A look into the entity definition of the entityqueue module shows in src/Entity/EntitySubqueue.php

    entity_keys = {
     *     "id" = "name",
     *     "revision" = "revision_id",
     *     "bundle" = "queue",
     *     "label" = "title",
     *     "langcode" = "langcode",
     *     "uuid" = "uuid",
     *     "owner" = "uid",
     *     "published" = "status",
     *   },
    

    I think this is where the break happens. Should entityqueue module adapt this or tome handle it?

Production build 0.71.5 2024