added roles and created user migration, added uid to breve & materiau migration
This commit is contained in:
parent
489cea7f73
commit
168da1148d
|
@ -0,0 +1,70 @@
|
||||||
|
uuid: 1c56abbe-9848-4bae-a7e2-6111c2411799
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.field.user.user.field_company
|
||||||
|
- field.field.user.user.field_memo
|
||||||
|
- field.field.user.user.field_showroom
|
||||||
|
module:
|
||||||
|
- path
|
||||||
|
- user
|
||||||
|
id: user.user.default
|
||||||
|
targetEntityType: user
|
||||||
|
bundle: user
|
||||||
|
mode: default
|
||||||
|
content:
|
||||||
|
account:
|
||||||
|
weight: 0
|
||||||
|
region: content
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
contact:
|
||||||
|
weight: 6
|
||||||
|
region: content
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
field_company:
|
||||||
|
weight: 1
|
||||||
|
settings:
|
||||||
|
match_operator: CONTAINS
|
||||||
|
size: 60
|
||||||
|
placeholder: ''
|
||||||
|
third_party_settings: { }
|
||||||
|
type: entity_reference_autocomplete
|
||||||
|
region: content
|
||||||
|
field_memo:
|
||||||
|
weight: 3
|
||||||
|
settings:
|
||||||
|
rows: 5
|
||||||
|
placeholder: ''
|
||||||
|
third_party_settings: { }
|
||||||
|
type: string_textarea
|
||||||
|
region: content
|
||||||
|
field_showroom:
|
||||||
|
weight: 2
|
||||||
|
settings:
|
||||||
|
match_operator: CONTAINS
|
||||||
|
size: 60
|
||||||
|
placeholder: ''
|
||||||
|
third_party_settings: { }
|
||||||
|
type: entity_reference_autocomplete
|
||||||
|
region: content
|
||||||
|
language:
|
||||||
|
weight: 4
|
||||||
|
region: content
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
matomo:
|
||||||
|
weight: 5
|
||||||
|
region: content
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
path:
|
||||||
|
type: path
|
||||||
|
weight: 7
|
||||||
|
region: content
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
hidden:
|
||||||
|
langcode: true
|
|
@ -0,0 +1,45 @@
|
||||||
|
uuid: 2ccab3a0-5689-4411-8037-bfdb99c7e7c5
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.field.user.user.field_company
|
||||||
|
- field.field.user.user.field_memo
|
||||||
|
- field.field.user.user.field_showroom
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user.user.default
|
||||||
|
targetEntityType: user
|
||||||
|
bundle: user
|
||||||
|
mode: default
|
||||||
|
content:
|
||||||
|
field_company:
|
||||||
|
weight: 6
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
type: entity_reference_label
|
||||||
|
region: content
|
||||||
|
field_memo:
|
||||||
|
weight: 8
|
||||||
|
label: above
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
type: basic_string
|
||||||
|
region: content
|
||||||
|
field_showroom:
|
||||||
|
weight: 7
|
||||||
|
label: above
|
||||||
|
settings:
|
||||||
|
link: true
|
||||||
|
third_party_settings: { }
|
||||||
|
type: entity_reference_label
|
||||||
|
region: content
|
||||||
|
member_for:
|
||||||
|
weight: 5
|
||||||
|
settings: { }
|
||||||
|
third_party_settings: { }
|
||||||
|
region: content
|
||||||
|
hidden:
|
||||||
|
langcode: true
|
|
@ -0,0 +1,30 @@
|
||||||
|
uuid: 9e976447-862f-4d6c-9191-acb5ecc26486
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.user.field_company
|
||||||
|
- taxonomy.vocabulary.company
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user.user.field_company
|
||||||
|
field_name: field_company
|
||||||
|
entity_type: user
|
||||||
|
bundle: user
|
||||||
|
label: Company
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
handler: 'default:taxonomy_term'
|
||||||
|
handler_settings:
|
||||||
|
target_bundles:
|
||||||
|
company: company
|
||||||
|
sort:
|
||||||
|
field: name
|
||||||
|
direction: asc
|
||||||
|
auto_create: false
|
||||||
|
auto_create_bundle: ''
|
||||||
|
field_type: entity_reference
|
|
@ -0,0 +1,20 @@
|
||||||
|
uuid: abcf9d2a-5037-4bd5-a54f-0d7e992911bd
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.user.field_memo
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user.user.field_memo
|
||||||
|
field_name: field_memo
|
||||||
|
entity_type: user
|
||||||
|
bundle: user
|
||||||
|
label: Memo
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings: { }
|
||||||
|
field_type: string_long
|
|
@ -0,0 +1,30 @@
|
||||||
|
uuid: d9dc767c-3a20-4599-8564-8552448637ed
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- field.storage.user.field_showroom
|
||||||
|
- taxonomy.vocabulary.showroom
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user.user.field_showroom
|
||||||
|
field_name: field_showroom
|
||||||
|
entity_type: user
|
||||||
|
bundle: user
|
||||||
|
label: Showroom
|
||||||
|
description: ''
|
||||||
|
required: false
|
||||||
|
translatable: false
|
||||||
|
default_value: { }
|
||||||
|
default_value_callback: ''
|
||||||
|
settings:
|
||||||
|
handler: 'default:taxonomy_term'
|
||||||
|
handler_settings:
|
||||||
|
target_bundles:
|
||||||
|
showroom: showroom
|
||||||
|
sort:
|
||||||
|
field: name
|
||||||
|
direction: asc
|
||||||
|
auto_create: false
|
||||||
|
auto_create_bundle: ''
|
||||||
|
field_type: entity_reference
|
|
@ -0,0 +1,20 @@
|
||||||
|
uuid: 71027dab-ea88-4962-b9f5-551715afd03e
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- taxonomy
|
||||||
|
- user
|
||||||
|
id: user.field_company
|
||||||
|
field_name: field_company
|
||||||
|
entity_type: user
|
||||||
|
type: entity_reference
|
||||||
|
settings:
|
||||||
|
target_type: taxonomy_term
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
|
@ -0,0 +1,19 @@
|
||||||
|
uuid: 87f652fd-a549-475f-8e14-1882aa392473
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user.field_memo
|
||||||
|
field_name: field_memo
|
||||||
|
entity_type: user
|
||||||
|
type: string_long
|
||||||
|
settings:
|
||||||
|
case_sensitive: false
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
|
@ -0,0 +1,20 @@
|
||||||
|
uuid: 04c3ccd6-7cfd-46f6-8687-ecdde95b7d06
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
module:
|
||||||
|
- taxonomy
|
||||||
|
- user
|
||||||
|
id: user.field_showroom
|
||||||
|
field_name: field_showroom
|
||||||
|
entity_type: user
|
||||||
|
type: entity_reference
|
||||||
|
settings:
|
||||||
|
target_type: taxonomy_term
|
||||||
|
module: core
|
||||||
|
locked: false
|
||||||
|
cardinality: 1
|
||||||
|
translatable: true
|
||||||
|
indexes: { }
|
||||||
|
persist_with_no_fields: false
|
||||||
|
custom_storage: false
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 08f56f89-ef1b-49ae-8321-61c164b21bc2
|
uuid: ba23fbec-1d22-4a18-b572-c1a679e0aefd
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
uuid: fe5c7cd7-5404-420c-a41d-144c23f5a2c7
|
uuid: acabbdc5-4d4e-4a84-9259-5c6b0591335c
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
_core:
|
_core:
|
||||||
default_config_hash: JA4aMGGDJwLeCUNGla4k3R17rNjUTUbDb3UHhsVIRxQ
|
default_config_hash: 9C1U46FXLxeqPJ9INTQmsLtDe6e18iDy_U2gmhUpl4Q
|
||||||
id: d7_node_breve
|
id: d7_node_breve
|
||||||
class: null
|
class: null
|
||||||
field_plugin_method: null
|
field_plugin_method: null
|
||||||
|
@ -27,6 +27,10 @@ process:
|
||||||
title: title
|
title: title
|
||||||
created: created
|
created: created
|
||||||
changed: changed
|
changed: changed
|
||||||
|
uid:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_users
|
||||||
|
source: uid
|
||||||
field_migration:
|
field_migration:
|
||||||
plugin: default_value
|
plugin: default_value
|
||||||
default_value: migration_imported
|
default_value: migration_imported
|
||||||
|
@ -94,6 +98,7 @@ destination:
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- d7_allpublicfiles
|
- d7_allpublicfiles
|
||||||
|
- d7_users
|
||||||
- d7_taxonomy_term_thesaurus
|
- d7_taxonomy_term_thesaurus
|
||||||
- d7_taxonomy_term_tags
|
- d7_taxonomy_term_tags
|
||||||
- d7_taxonomy_term_company
|
- d7_taxonomy_term_company
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 54e7e1a7-afa1-44a2-b332-419c3cfeb7a4
|
uuid: 9ba9ed3c-0403-47f7-833c-32eb5901e3a0
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
uuid: 179f73ca-cb6a-4277-9d37-f8b0f804c446
|
uuid: 5d164ac2-4f6b-44cf-a0ac-29a6c42c2290
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
_core:
|
_core:
|
||||||
default_config_hash: vECgUQkA1A8_ZiNqfWtEenHdJrqYKE98xNWqiR19E_4
|
default_config_hash: i5TbqALRlvWgoqxwwZ8XeBUNtgZjummPwZQZM-2NRew
|
||||||
id: d7_node_materiau
|
id: d7_node_materiau
|
||||||
class: null
|
class: null
|
||||||
field_plugin_method: null
|
field_plugin_method: null
|
||||||
|
@ -27,6 +27,10 @@ process:
|
||||||
title: title
|
title: title
|
||||||
created: created
|
created: created
|
||||||
changed: changed
|
changed: changed
|
||||||
|
uid:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_users
|
||||||
|
source: uid
|
||||||
field_short_description: field_nature_titre
|
field_short_description: field_nature_titre
|
||||||
field_migration:
|
field_migration:
|
||||||
plugin: default_value
|
plugin: default_value
|
||||||
|
@ -140,6 +144,7 @@ destination:
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- d7_allpublicfiles
|
- d7_allpublicfiles
|
||||||
|
- d7_users
|
||||||
- d7_taxonomy_term_thesaurus
|
- d7_taxonomy_term_thesaurus
|
||||||
- d7_taxonomy_term_tags
|
- d7_taxonomy_term_tags
|
||||||
- d7_taxonomy_term_company
|
- d7_taxonomy_term_company
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 77834f54-2f0e-40ba-8019-69939d0ca1fe
|
uuid: 3c1f0e83-eb0f-4eef-a98d-a5905d59f787
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: acc28c34-ed9f-426d-af0f-abc8ac5f487f
|
uuid: c3fbebf7-4117-458d-ad90-2cfc235784b4
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: a5d4a3ab-6711-4609-8089-aa5dbcf67dd3
|
uuid: 9e7ef86e-7eb8-45e7-901e-ad9bc412f210
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 19726b72-67fa-4f1e-9266-a404d9b04c1c
|
uuid: 8b2f1d14-85ec-4ac8-a03b-8beba280f2eb
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 23fd1ac1-d176-4b6a-9f38-e005f5489745
|
uuid: 13c714e0-c267-4ea7-8c2a-5380cde65359
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: a978099f-5b98-4b31-808a-0642e769690f
|
uuid: bc0c7ae3-5eda-4772-aa53-e25f139f5954
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
uuid: 2fe883b6-f961-4687-8ad2-25ed24a7ced1
|
uuid: a80a2e78-18ed-4205-9fd4-2c3dfabf1be1
|
||||||
langcode: en
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies: { }
|
dependencies: { }
|
||||||
|
|
|
@ -0,0 +1,89 @@
|
||||||
|
uuid: 20b9553f-981f-483e-a997-10d932905026
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
_core:
|
||||||
|
default_config_hash: 3JaOIJug248HhFZJwv4iL-o3Na6-pzQKfvEzHZ4rPZw
|
||||||
|
id: d7_users
|
||||||
|
class: Drupal\user\Plugin\migrate\User
|
||||||
|
field_plugin_method: null
|
||||||
|
cck_plugin_method: null
|
||||||
|
migration_tags:
|
||||||
|
- 'Drupal 7'
|
||||||
|
- Content
|
||||||
|
migration_group: d7_materio
|
||||||
|
label: 'User accounts'
|
||||||
|
source:
|
||||||
|
plugin: d7_user
|
||||||
|
process:
|
||||||
|
name: name
|
||||||
|
pass: pass
|
||||||
|
mail:
|
||||||
|
-
|
||||||
|
plugin: skip_on_value
|
||||||
|
equals: true
|
||||||
|
source: mail
|
||||||
|
method: row
|
||||||
|
value:
|
||||||
|
- dev@g-u-i.net
|
||||||
|
- admin@g-u-i.net
|
||||||
|
-
|
||||||
|
plugin: default_value
|
||||||
|
source: mail
|
||||||
|
default_value: null
|
||||||
|
created: created
|
||||||
|
access: access
|
||||||
|
login: login
|
||||||
|
status: status
|
||||||
|
timezone: timezone
|
||||||
|
langcode:
|
||||||
|
plugin: user_langcode
|
||||||
|
source: entity_language
|
||||||
|
fallback_to_site_default: false
|
||||||
|
preferred_langcode:
|
||||||
|
plugin: user_langcode
|
||||||
|
source: language
|
||||||
|
fallback_to_site_default: true
|
||||||
|
preferred_admin_langcode:
|
||||||
|
plugin: user_langcode
|
||||||
|
source: language
|
||||||
|
fallback_to_site_default: true
|
||||||
|
init: init
|
||||||
|
roles:
|
||||||
|
plugin: static_map
|
||||||
|
source: roles
|
||||||
|
default_value: 2
|
||||||
|
map:
|
||||||
|
1: anonymous
|
||||||
|
2: authenticated
|
||||||
|
3: admin
|
||||||
|
4: root
|
||||||
|
5: contact_company
|
||||||
|
6: adherent
|
||||||
|
7: free_user
|
||||||
|
8: premium
|
||||||
|
9: unverified
|
||||||
|
10: student
|
||||||
|
11: alpha_testeur
|
||||||
|
12: translator
|
||||||
|
13: admin_showroom
|
||||||
|
user_picture:
|
||||||
|
-
|
||||||
|
plugin: default_value
|
||||||
|
source: picture
|
||||||
|
default_value: null
|
||||||
|
-
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_file
|
||||||
|
field_company:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_taxonomy_term_company
|
||||||
|
source: field_company
|
||||||
|
field_showroom:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_taxonomy_term_showroom
|
||||||
|
source: field_showroom
|
||||||
|
field_memo: field_memo
|
||||||
|
destination:
|
||||||
|
plugin: 'entity:user'
|
||||||
|
migration_dependencies: null
|
|
@ -1,5 +1,5 @@
|
||||||
uuid: bb745097-c0b1-4e79-b7a2-9a2aebc60081
|
uuid: f8a2f577-f066-4c45-b923-64b7a3029459
|
||||||
langcode: fr
|
langcode: en
|
||||||
status: true
|
status: true
|
||||||
dependencies:
|
dependencies:
|
||||||
enforced:
|
enforced:
|
||||||
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: a1539578-eb69-4d41-8da0-55c74c3c07c6
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.adherent
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.adherent
|
||||||
|
label: 'Add the Adhérent role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: adherent
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 4269c465-765a-4aa4-ab22-8964735d0fdd
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.admin_showroom
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.admin_showroom
|
||||||
|
label: 'Add the Admin Showroom role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: admin_showroom
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: d1068318-672f-4c75-99bc-941c28dce6c5
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.alpha_testeur
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.alpha_testeur
|
||||||
|
label: 'Add the Alpha Testeur role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: alpha_testeur
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 473a6692-fed9-4230-ab3d-d2fa231d034f
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.contact_company
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.contact_company
|
||||||
|
label: 'Add the Contact Company role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: contact_company
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 627408e8-9ef1-4be1-a0f9-b61fdae7fefc
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.free_user
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.free_user
|
||||||
|
label: 'Add the Free User role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: free_user
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: d78cc274-8638-4b3e-9839-6241db7fabcb
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.premium
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.premium
|
||||||
|
label: 'Add the Premium role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: premium
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 957031fe-f1c1-40fd-8c6e-5c5e903dbddc
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.student
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.student
|
||||||
|
label: 'Add the Student role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: student
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: a0056c79-5a7b-4066-a336-093abc47f6d5
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.translator
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.translator
|
||||||
|
label: 'Add the Translator role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: translator
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: f7c1157e-9ac6-4f8a-980c-f1be93767ced
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.unverified
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_add_role_action.unverified
|
||||||
|
label: 'Add the Unverified role to the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_add_role_action
|
||||||
|
configuration:
|
||||||
|
rid: unverified
|
|
@ -1,14 +0,0 @@
|
||||||
uuid: 45201531-fce2-4bdd-97ff-e76c41baee24
|
|
||||||
langcode: en
|
|
||||||
status: true
|
|
||||||
dependencies:
|
|
||||||
config:
|
|
||||||
- user.role.user
|
|
||||||
module:
|
|
||||||
- user
|
|
||||||
id: user_add_role_action.user
|
|
||||||
label: 'Add the User role to the selected user(s)'
|
|
||||||
type: user
|
|
||||||
plugin: user_add_role_action
|
|
||||||
configuration:
|
|
||||||
rid: user
|
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 1533f2e8-8f85-4a50-a94f-0e5399f27b6b
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.adherent
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.adherent
|
||||||
|
label: 'Remove the Adhérent role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: adherent
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: f8feb602-5379-49e1-9a1f-90265d104c81
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.admin_showroom
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.admin_showroom
|
||||||
|
label: 'Remove the Admin Showroom role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: admin_showroom
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 291a98cf-6de7-4b7e-9e22-73c7d627e283
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.alpha_testeur
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.alpha_testeur
|
||||||
|
label: 'Remove the Alpha Testeur role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: alpha_testeur
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: c9c285a6-2cea-4018-bb0d-9d6c76eba6b6
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.contact_company
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.contact_company
|
||||||
|
label: 'Remove the Contact Company role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: contact_company
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 5460d66a-a7ec-434a-b214-3283b5ad93fe
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.free_user
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.free_user
|
||||||
|
label: 'Remove the Free User role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: free_user
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: e8b19807-4d49-4c61-b59d-fb66dadfafe8
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.premium
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.premium
|
||||||
|
label: 'Remove the Premium role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: premium
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 6a7df3b1-9b06-4271-afcf-1db44a640ff6
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.student
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.student
|
||||||
|
label: 'Remove the Student role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: student
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 7936630e-e2e2-419a-85c8-55f356b69254
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.translator
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.translator
|
||||||
|
label: 'Remove the Translator role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: translator
|
|
@ -0,0 +1,14 @@
|
||||||
|
uuid: 6cc5e61e-7eb9-43fd-8148-ce591cbc2220
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies:
|
||||||
|
config:
|
||||||
|
- user.role.unverified
|
||||||
|
module:
|
||||||
|
- user
|
||||||
|
id: user_remove_role_action.unverified
|
||||||
|
label: 'Remove the Unverified role from the selected user(s)'
|
||||||
|
type: user
|
||||||
|
plugin: user_remove_role_action
|
||||||
|
configuration:
|
||||||
|
rid: unverified
|
|
@ -1,14 +0,0 @@
|
||||||
uuid: 88faba46-cc7f-475d-9777-42f0087670c8
|
|
||||||
langcode: en
|
|
||||||
status: true
|
|
||||||
dependencies:
|
|
||||||
config:
|
|
||||||
- user.role.user
|
|
||||||
module:
|
|
||||||
- user
|
|
||||||
id: user_remove_role_action.user
|
|
||||||
label: 'Remove the User role from the selected user(s)'
|
|
||||||
type: user
|
|
||||||
plugin: user_remove_role_action
|
|
||||||
configuration:
|
|
||||||
rid: user
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: aeab5dec-5794-4694-af5a-bfeb243ef3ce
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: adherent
|
||||||
|
label: Adhérent
|
||||||
|
weight: -2
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: 7f1dff53-0e0e-4682-ae82-e633af536bb5
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: admin_showroom
|
||||||
|
label: 'Admin Showroom'
|
||||||
|
weight: 5
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: e9a81ad2-aefc-47ee-b0e3-ff576b63867d
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: alpha_testeur
|
||||||
|
label: 'Alpha Testeur'
|
||||||
|
weight: 3
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: 9b3c30ad-d9b2-47c4-bdf2-f5c95287cb2a
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: contact_company
|
||||||
|
label: 'Contact Company'
|
||||||
|
weight: -3
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: 4eb8f2ac-1fef-4349-93b8-51fc0bbdecf3
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: free_user
|
||||||
|
label: 'Free User'
|
||||||
|
weight: -1
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: ebd726b9-0534-4a72-b774-f7f4ccfb3d03
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: premium
|
||||||
|
label: Premium
|
||||||
|
weight: 0
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: f6f5d597-68e7-4746-88b4-f2d76f6a5616
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: student
|
||||||
|
label: Student
|
||||||
|
weight: 2
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: 19ab6b22-07c6-48ef-ad7e-b9b698727851
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: translator
|
||||||
|
label: Translator
|
||||||
|
weight: 4
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -0,0 +1,9 @@
|
||||||
|
uuid: a704e20f-bd66-4da1-acc1-68e876955d74
|
||||||
|
langcode: en
|
||||||
|
status: true
|
||||||
|
dependencies: { }
|
||||||
|
id: unverified
|
||||||
|
label: Unverified
|
||||||
|
weight: 1
|
||||||
|
is_admin: null
|
||||||
|
permissions: { }
|
|
@ -1,15 +0,0 @@
|
||||||
uuid: dba3cba9-6dcc-48a8-a89c-b6ad82a6af40
|
|
||||||
langcode: fr
|
|
||||||
status: true
|
|
||||||
dependencies: { }
|
|
||||||
_core:
|
|
||||||
default_config_hash: i1HX2g6ycNxMoSaVKRrMZtmApin-bVKG1d0FG04peQw
|
|
||||||
id: user
|
|
||||||
label: User
|
|
||||||
weight: -4
|
|
||||||
is_admin: null
|
|
||||||
permissions:
|
|
||||||
- 'create defalut workflow_transition'
|
|
||||||
- 'create default workflow_transition'
|
|
||||||
- 'create migration workflow_transition'
|
|
||||||
- 'create workflow workflow_transition'
|
|
File diff suppressed because it is too large
Load Diff
|
@ -11,6 +11,10 @@ echo " "
|
||||||
echo "Migrating Files"
|
echo "Migrating Files"
|
||||||
drush mim d7_allpublicfiles --feedback="1000"
|
drush mim d7_allpublicfiles --feedback="1000"
|
||||||
|
|
||||||
|
echo " "
|
||||||
|
echo "Migrating Users"
|
||||||
|
drush mim d7_users --update --feedback="1000"
|
||||||
|
|
||||||
echo " "
|
echo " "
|
||||||
echo "Migrating Taxonomy"
|
echo "Migrating Taxonomy"
|
||||||
echo "Migrating thesaurus"
|
echo "Migrating thesaurus"
|
||||||
|
|
|
@ -28,6 +28,11 @@ process:
|
||||||
created: created
|
created: created
|
||||||
changed: changed
|
changed: changed
|
||||||
|
|
||||||
|
uid:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_users
|
||||||
|
source: uid
|
||||||
|
|
||||||
field_migration:
|
field_migration:
|
||||||
plugin: default_value
|
plugin: default_value
|
||||||
default_value: 'migration_imported'
|
default_value: 'migration_imported'
|
||||||
|
@ -95,6 +100,7 @@ process:
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- d7_allpublicfiles
|
- d7_allpublicfiles
|
||||||
|
- d7_users
|
||||||
- d7_taxonomy_term_thesaurus
|
- d7_taxonomy_term_thesaurus
|
||||||
- d7_taxonomy_term_tags
|
- d7_taxonomy_term_tags
|
||||||
- d7_taxonomy_term_company
|
- d7_taxonomy_term_company
|
||||||
|
|
|
@ -28,6 +28,11 @@ process:
|
||||||
created: created
|
created: created
|
||||||
changed: changed
|
changed: changed
|
||||||
|
|
||||||
|
uid:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_users
|
||||||
|
source: uid
|
||||||
|
|
||||||
field_short_description: field_nature_titre
|
field_short_description: field_nature_titre
|
||||||
field_migration:
|
field_migration:
|
||||||
plugin: default_value
|
plugin: default_value
|
||||||
|
@ -145,6 +150,7 @@ process:
|
||||||
migration_dependencies:
|
migration_dependencies:
|
||||||
required:
|
required:
|
||||||
- d7_allpublicfiles
|
- d7_allpublicfiles
|
||||||
|
- d7_users
|
||||||
- d7_taxonomy_term_thesaurus
|
- d7_taxonomy_term_thesaurus
|
||||||
- d7_taxonomy_term_tags
|
- d7_taxonomy_term_tags
|
||||||
- d7_taxonomy_term_company
|
- d7_taxonomy_term_company
|
||||||
|
|
|
@ -0,0 +1,109 @@
|
||||||
|
id: d7_users
|
||||||
|
label: User accounts
|
||||||
|
migration_group: d7_materio
|
||||||
|
audit: true
|
||||||
|
migration_tags:
|
||||||
|
- Drupal 7
|
||||||
|
- Content
|
||||||
|
class: Drupal\user\Plugin\migrate\User
|
||||||
|
|
||||||
|
source:
|
||||||
|
plugin: d7_user
|
||||||
|
|
||||||
|
destination:
|
||||||
|
plugin: entity:user
|
||||||
|
|
||||||
|
process:
|
||||||
|
# If you are using this file to build a custom migration consider removing
|
||||||
|
# the uid field to allow incremental migrations.
|
||||||
|
# uid: uid
|
||||||
|
|
||||||
|
name: name
|
||||||
|
pass: pass
|
||||||
|
mail:
|
||||||
|
-
|
||||||
|
plugin: skip_on_value
|
||||||
|
equals: true
|
||||||
|
source: mail
|
||||||
|
method: row
|
||||||
|
value:
|
||||||
|
- "dev@g-u-i.net"
|
||||||
|
- "admin@g-u-i.net"
|
||||||
|
-
|
||||||
|
plugin: default_value
|
||||||
|
source: mail
|
||||||
|
default_value: null
|
||||||
|
|
||||||
|
created: created
|
||||||
|
access: access
|
||||||
|
login: login
|
||||||
|
status: status
|
||||||
|
timezone: timezone
|
||||||
|
langcode:
|
||||||
|
plugin: user_langcode
|
||||||
|
source: entity_language
|
||||||
|
fallback_to_site_default: false
|
||||||
|
preferred_langcode:
|
||||||
|
plugin: user_langcode
|
||||||
|
source: language
|
||||||
|
fallback_to_site_default: true
|
||||||
|
preferred_admin_langcode:
|
||||||
|
plugin: user_langcode
|
||||||
|
source: language
|
||||||
|
fallback_to_site_default: true
|
||||||
|
init: init
|
||||||
|
# roles:
|
||||||
|
# plugin: migration_lookup
|
||||||
|
# migration: d7_user_role
|
||||||
|
# source: roles
|
||||||
|
roles:
|
||||||
|
plugin: static_map
|
||||||
|
source: roles
|
||||||
|
default_value: 2
|
||||||
|
map:
|
||||||
|
1: "anonymous"
|
||||||
|
2: "authenticated"
|
||||||
|
3: "admin"
|
||||||
|
4: "root"
|
||||||
|
5: "contact_company"
|
||||||
|
6: "adherent"
|
||||||
|
7: "free_user"
|
||||||
|
8: "premium"
|
||||||
|
9: "unverified"
|
||||||
|
10: "student"
|
||||||
|
11: "alpha_testeur"
|
||||||
|
12: "translator"
|
||||||
|
13: "admin_showroom"
|
||||||
|
|
||||||
|
user_picture:
|
||||||
|
-
|
||||||
|
plugin: default_value
|
||||||
|
source: picture
|
||||||
|
default_value: null
|
||||||
|
-
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_file
|
||||||
|
|
||||||
|
field_company:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_taxonomy_term_company
|
||||||
|
source: field_company
|
||||||
|
|
||||||
|
field_showroom:
|
||||||
|
plugin: migration_lookup
|
||||||
|
migration: d7_taxonomy_term_showroom
|
||||||
|
source: field_showroom
|
||||||
|
|
||||||
|
field_memo: field_memo
|
||||||
|
|
||||||
|
migration_dependencies:
|
||||||
|
required:
|
||||||
|
- d7_allpublicfiles
|
||||||
|
# optional:
|
||||||
|
# - d7_field_instance
|
||||||
|
# - d7_file
|
||||||
|
# - language
|
||||||
|
# - default_language
|
||||||
|
# - user_picture_field_instance
|
||||||
|
# - user_picture_entity_display
|
||||||
|
# - user_picture_entity_form_display
|
|
@ -65,6 +65,7 @@ class D7NodeBreve extends FieldableEntity {
|
||||||
->fields('n', [
|
->fields('n', [
|
||||||
'nid',
|
'nid',
|
||||||
'type',
|
'type',
|
||||||
|
'uid',
|
||||||
'language',
|
'language',
|
||||||
'status',
|
'status',
|
||||||
'created',
|
'created',
|
||||||
|
|
|
@ -65,6 +65,7 @@ class D7NodeMateriau extends FieldableEntity {
|
||||||
->fields('n', [
|
->fields('n', [
|
||||||
'nid',
|
'nid',
|
||||||
'type',
|
'type',
|
||||||
|
'uid',
|
||||||
'language',
|
'language',
|
||||||
'status',
|
'status',
|
||||||
'created',
|
'created',
|
||||||
|
|
Loading…
Reference in New Issue