- Issue created by @joachim
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.
Active
3.0
Code