Migration to D9/10

Created on 13 March 2023, almost 2 years ago

Problem/Motivation

The table structure from D7 to D9/10 is the same, but we need a migration.

I don't have time to work more on this, but here's what's worked in my project, in case anyone wants to pick it up and make a patch:

langcode: en
status: true
dependencies: {  }
id: upgrade_d7_zendesk_users
migration_tags:
  - Firecore
  - Content
  # We can't have this tag, because MigrationPluginManager doens't like us using
  # generic plugins.
  # - 'Drupal 7'
migration_group: firecore_migrate
label: 'Zendesk users'
source:
  plugin: table
  table_name: zendesk_users
  id_fields:
    uid:
      type: integer
process:
  uid: uid
  zid: zid
destination:
  plugin: table
  # Key for the database connection to use for inserting records.
  database_key: default
  # DB table for storage.
  table_name: zendesk_users
  # Maximum number of rows to insert in one query.
  batch_size: 3
  id_fields:
    uid:
      type: integer
  # Mapping of column names to values set in migrate process.
  fields:
    uid: uid
    zid: zid
migration_dependencies:
  required: []
  optional:
    - upgrade_d7_user

Instead of using the 'table' source and destination plugins, which are from the Migrate Plus module, we might want to write custom plugins.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom joachim

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

Comments & Activities

Production build 0.71.5 2024