Sql id map assumes message table exists if map table exists

Created on 2 March 2018, over 7 years ago
Updated 15 August 2025, 8 days ago

Problem/Motivation

The \Drupal\migrate\Plugin\migrate\id_map\Sql class assumes that the migration message table exists if the related map table exists.
This is OK in most cases, but in the context of Allow overriding id map migrate plugin Needs review , and using a custom id map plugin that allows overriding the map/message tables; the assumption does not hold up.

Proposed resolution

Remove the assumption, this can be even be only for correctness :-)

Remaining tasks

User interface changes

N.A.

API changes

N.A.

Data model changes

N.A.

🐛 Bug report
Status

Needs work

Version

11.0 🔥

Component

migration system

Created by

🇵🇪Peru marvil07

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • Needs reroll

    The patch will have to be re-rolled with new suggestions/changes described in the comments in the issue.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

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