mirror of
https://github.com/farmOS/farmOS.git
synced 2024-02-23 11:37:38 +01:00
Split farm_migrate_user and farm_migrate_role out to their own migration groups.
This allows contrib modules to provide their own role migrations by replicating the farm_migrate_role config.
This commit is contained in:
parent
74effb652c
commit
d38a5eb1d9
|
@ -28,6 +28,8 @@ Follow the steps below to migrate your farmOS 1.x data to farmOS 2.x:
|
|||
6. Run the farmOS 1.x Migrations via Drush (in this order):
|
||||
|
||||
drush migrate:import --group=farm_migrate
|
||||
drush migrate:import --group=farm_migrate_role
|
||||
drush migrate:import --group=farm_migrate_user
|
||||
drush migrate:import --group=farm_migrate_taxonomy
|
||||
drush migrate:import --group=farm_migrate_asset
|
||||
drush migrate:import --group=farm_migrate_area
|
||||
|
|
|
@ -6,7 +6,7 @@ dependencies:
|
|||
- farm_migrate
|
||||
id: farm_migrate_role
|
||||
label: 'Roles'
|
||||
migration_group: farm_migrate
|
||||
migration_group: farm_migrate_role
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- 'farmOS 1.x'
|
||||
|
|
|
@ -6,7 +6,7 @@ dependencies:
|
|||
- farm_migrate
|
||||
id: farm_migrate_user
|
||||
label: 'User accounts'
|
||||
migration_group: farm_migrate
|
||||
migration_group: farm_migrate_user
|
||||
migration_tags:
|
||||
- 'Drupal 7'
|
||||
- 'farmOS 1.x'
|
||||
|
@ -61,12 +61,11 @@ process:
|
|||
plugin: get
|
||||
source: init
|
||||
roles:
|
||||
plugin: migration_lookup
|
||||
migration: farm_migrate_role
|
||||
plugin: farm_migration_group_lookup
|
||||
migration_group: farm_migrate_role
|
||||
source: roles
|
||||
no_stub: true
|
||||
migration_dependencies:
|
||||
required:
|
||||
- farm_migrate_role
|
||||
required: { }
|
||||
optional:
|
||||
- farm_migrate_system_date
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- farm_migrate
|
||||
id: farm_migrate_role
|
||||
label: 'farmOS 1.x Role Migration'
|
||||
description: 'Migrates roles from farmOS 1.x to farmOS 2.x'
|
||||
source_type: 'farmOS 1.x'
|
||||
module: null
|
||||
shared_configuration: null
|
|
@ -0,0 +1,12 @@
|
|||
langcode: en
|
||||
status: true
|
||||
dependencies:
|
||||
enforced:
|
||||
module:
|
||||
- farm_migrate
|
||||
id: farm_migrate_user
|
||||
label: 'farmOS 1.x User Migration'
|
||||
description: 'Migrates users from farmOS 1.x to farmOS 2.x'
|
||||
source_type: 'farmOS 1.x'
|
||||
module: null
|
||||
shared_configuration: null
|
Loading…
Reference in a new issue