reinstalled all contribs with composer

need to run :
drush ev 'drupal_flush_all_caches();'
drush cr
and restart nginx and php-fpm before loading the website
This commit is contained in:
2019-04-30 19:27:47 +02:00
parent e1f9bb3cd0
commit 9da6cf9927
373 changed files with 3392 additions and 5 deletions
@@ -0,0 +1,52 @@
# Every migration that references a file by Drupal 6 fid should specify this
# migration as an optional dependency.
id: d6_edlp_allfiles
label: Edlp Drupal 6 mp3 migration
migration_tags:
- Drupal 6
migration_group: d6_edlp
source:
plugin: d6_edlp_file
constants:
# The tool configuring this migration must set source_base_path. It
# represents the fully qualified path relative to which URIs in the files
# table are specified, and must end with a /. See source_full_path
# configuration in this migration's process pipeline as an example.
source_base_path: '../drupal6'
process:
# If you are using both this migration and d6_user_picture_file in a custom
# migration and executing migrations incrementally, it is strongly
# recommended that you remove the fid mapping to avoid potential ID
# conflicts. For that reason, this mapping is commented out by default.
fid: fid
filename: filename
source_full_path:
-
plugin: concat
delimiter: /
source:
- constants/source_base_path
- filepath
-
plugin: urlencode
destination_full_path:
plugin: file_uri
source:
- filepath
- file_directory_path
- temp_directory_path
- is_public
uri:
plugin: file_copy
source:
- '@source_full_path'
- '@destination_full_path'
filemime: filemime
# No need to migrate filesize, it is computed when file entities are saved.
# filesize: filesize
status: status
changed: timestamp
uid: uid
destination:
plugin: entity:file
@@ -0,0 +1,184 @@
id: d6_edlp_corpus
label: Edlp Drupal 6 corpus
migration_tags:
- Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
migration_group: d6_edlp
source:
plugin: d6_edlp_corpus
node_type: corpus
process:
# In D6, nodes always have a tnid, but it's zero for untranslated nodes.
# We normalize it to equal the nid in that case.
# @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
# nid: tnid
# vid: vid
type:
plugin: default_value
default_value: enregistrement
langcode:
plugin: default_value
source: language
default_value: "und"
title:
-
plugin: get
source: title
-
plugin: skip_on_empty
method: row
# this is not working :(
uid:
-
plugin: migration_lookup
migration: d6_edlp_users
source: node_uid
-
plugin: default_value
default_value: 1
# status: status
created: created
changed: changed
promote: promote
sticky: sticky
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
'field_description/value': body
'field_description/format':
plugin: default_value
default_value: wysiwyg
# ARTICLE (body)
# node ref -> text
'body/value': article
'body/format':
plugin: default_value
default_value: wysiwyg
# taxo term -> entity ref terms
# use this one for fetchCol in plugin
field_entrees:
plugin: migration_lookup
migration: d6_edlp_entrees
source: entrees
# use this one for fetchAll in plugin
# field_entrees:
# -
# plugin: iterator
# source: entrees
# process:
# id: tid
# -
# plugin: flatten
# -
# plugin: migration_lookup
# migration: d6_edlp_entrees
# no_stub: true
# field_entrees:
# plugin: iterator
# source: entrees
# process:
# plugin: migration_lookup
# migration: d6_edlp_entrees
# field_genre -> field_genres
field_genres:
plugin: migration_lookup
migration: d6_edlp_genres
source: genres
# field_genres:
# -
# plugin: iterator
# source: field_genre
# process:
# id: value
# -
# plugin: flatten
# -
# plugin: migration_lookup
# migration: d6_edlp_genres
# taxo term -> entity ref terms
field_langues:
plugin: migration_lookup
migration: d6_edlp_langues
source: langues
# field_artiste: field_locuteurs
# text -> entity ref terms
# instead of entity_generate, i create the term in prepareRow from plugin
field_locuteurs: locuteurs
# field_locuteurs:
# plugin: entity_generate
# entity_type: taxonomy_term
# bundle_key: vid
# bundle: locuteurs
# source: locuteurs
# # value_key: field_artiste_value
# field_compositeur: field_collectionneurs
# text -> entity ref terms
# instead of entity_generate, i create the term in prepareRow from plugin
field_collectionneurs: collectionneurs
# # file
# # field_mp3 -> field_son
field_son:
plugin: migration_lookup
migration: d6_edlp_allfiles
source: sons_fid
# field_son:
# # plugin: migration_lookup
# # migration: d6_edlp_allfiles
# # source: fid
# plugin: iterator
# source: field_mp3
# process:
# target_id:
# plugin: migration_lookup
# migration: d6_edlp_allfiles
# source: fid
# workflow
# status:
# plugin: static_map
# source: workflow
# map:
# 1: 0
# 2: 0
# 3: 1
# 4: 1
status:
plugin: default_value
default_value: 1
field_workflow:
plugin: default_value
default_value: "corpus_documents_publie"
destination:
plugin: entity:node
migration_dependencies:
required:
- d6_edlp_users
- d6_edlp_entrees
- d6_edlp_genres
- d6_edlp_langues
- d6_edlp_allfiles
@@ -0,0 +1,35 @@
id: d6_edlp_entrees
label: Edlp Drupal 6 entrees
migration_tags:
- Drupal 6
migration_group: d6_edlp
source:
plugin: d6_edlp_taxonomy_term_entree
bundle: 2
process:
name: name
# get the node type entrée from source and add it to description field
description/value:
-
plugin: get
source: description
-
plugin: skip_on_empty
method: row
description/format:
plugin: default_value
default_value: wysiwyg
# get the node type page:notice from source and add it to notice field
field_notice/value: notice
field_notice/format:
plugin: default_value
default_value: wysiwyg
vid:
plugin: default_value
default_value: entrees
weight: weight
destination:
plugin: entity:taxonomy_term
@@ -0,0 +1,93 @@
id: d6_edlp_evenements
label: Edlp Drupal 6 evenement migration
migration_tags:
- Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
migration_group: d6_edlp
source:
plugin: d6_edlp_evenements
node_type: event
process:
# In D6, nodes always have a tnid, but it's zero for untranslated nodes.
# We normalize it to equal the nid in that case.
# @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
# nid: tnid
# vid: vid
type:
plugin: default_value
default_value: evenement
langcode:
plugin: default_value
source: language
default_value: "und"
title:
-
plugin: get
source: title
-
plugin: skip_on_empty
method: row
# this is not working :(
uid:
-
plugin: migration_lookup
migration: d6_edlp_users
source: node_uid
-
plugin: default_value
default_value: 1
# status: status
created: created
changed: changed
promote: promote
sticky: sticky
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
'body/value': body
'body/format':
plugin: default_value
default_value: wysiwyg
status:
plugin: default_value
default_value: 1
# status:
# plugin: static_map
# source: workflow
# map:
# 1: 0
# 2: 0
# 3: 1
# 4: 1
# workflow
# field_workflow_generic:
# plugin: default_value
# default_value: "generique_publie"
field_workflow_generic:
plugin: static_map
source: workflow
map:
1: "generique_masque"
2: "generique_masque"
3: "generique_publie"
4: "generique_publie"
field_date/value: date
field_date/end_value: date
destination:
plugin: entity:node
migration_dependencies:
required:
- d6_edlp_users
@@ -0,0 +1,17 @@
id: d6_edlp_genres
label: Edlp Drupal 6 genres
migration_tags:
- Drupal 6
migration_group: d6_edlp
source:
plugin: d6_taxonomy_term
bundle: 3
process:
name: name
description: description
vid:
plugin: default_value
default_value: genres
destination:
plugin: entity:taxonomy_term
@@ -0,0 +1,17 @@
id: d6_edlp_langues
label: Edlp Drupal 6 langues
migration_tags:
- Drupal 6
migration_group: d6_edlp
source:
plugin: d6_taxonomy_term
bundle: 4
process:
name: name
description: description
vid:
plugin: default_value
default_value: langues
destination:
plugin: entity:taxonomy_term
@@ -0,0 +1,133 @@
id: d6_edlp_pages
label: Edlp Drupal 6 pages
migration_tags:
- Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
migration_group: d6_edlp
source:
plugin: d6_edlp_pages
node_type: page
process:
# In D6, nodes always have a tnid, but it's zero for untranslated nodes.
# We normalize it to equal the nid in that case.
# @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
# nid: tnid
# vid: vid
type:
plugin: default_value
default_value: page
langcode:
plugin: default_value
source: language
default_value: "und"
title:
-
plugin: get
source: title
-
plugin: skip_on_empty
method: row
uid:
-
plugin: migration_lookup
migration: d6_edlp_users
source: node_uid
-
plugin: default_value
default_value: 1
# status: status
created: created
changed: changed
promote: promote
sticky: sticky
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
'body/value': body
'body/format':
plugin: default_value
default_value: wysiwyg
# taxo term -> entity ref terms
# use this one for fetchCol in plugin
field_entrees:
plugin: migration_lookup
migration: d6_edlp_entrees
source: entrees
# taxo term -> entity ref terms
# use this one for fetchCol in plugin
# field_page_type:
# plugin: migration_lookup
# migration: d6_edlp_pagetype
# source: page_type
field_page_type:
-
plugin: skip_on_empty
method: row
message: 'Page type is missing, skiping row'
source: page_type
-
plugin: migration_lookup
migration: d6_edlp_pagetype
# TODO: exclude pages of type notice (will be incorporated directly into the entree taxo term)
# # file
# # field_mp3 -> field_son
# TODO: pour les pieces sonores les fichiers ne sont pas enregistrés dans le champ car trop lourd. Ils sont sous forme de lien dans le corps du texte. Comment normaliser ça ??
field_son:
plugin: migration_lookup
migration: d6_edlp_allfiles
source: sons_fid
# # field_visuel -> field_visuel
field_visuel:
plugin: migration_lookup
migration: d6_edlp_allfiles
source: visuels_fid
status:
plugin: default_value
default_value: 1
# status:
# plugin: static_map
# source: workflow
# map:
# 1: 0
# 2: 0
# 3: 1
# 4: 1
# workflow
# field_workflow_generic:
# plugin: default_value
# default_value: "generique_publie"
field_workflow_generic:
plugin: static_map
source: workflow
map:
1: "generique_masque"
2: "generique_masque"
3: "generique_publie"
4: "generique_publie"
# fichiers attachés ??
destination:
plugin: entity:node
migration_dependencies:
required:
- d6_edlp_users
- d6_edlp_entrees
- d6_edlp_pagetype
- d6_edlp_sons
- d6_edlp_allfiles
@@ -0,0 +1,17 @@
id: d6_edlp_pagetype
label: Edlp Drupal 6 type de page
migration_tags:
- Drupal 6
migration_group: d6_edlp
source:
plugin: d6_taxonomy_term
bundle: 1
process:
name: name
description: description
vid:
plugin: default_value
default_value: page_type
destination:
plugin: entity:taxonomy_term
@@ -0,0 +1,101 @@
id: d6_edlp_sons
label: Edlp Drupal 6 sons
migration_tags:
- Drupal 6
deriver: Drupal\node\Plugin\migrate\D6NodeDeriver
migration_group: d6_edlp
source:
plugin: d6_edlp_sons
node_type: son
process:
# In D6, nodes always have a tnid, but it's zero for untranslated nodes.
# We normalize it to equal the nid in that case.
# @see \Drupal\node\Plugin\migrate\source\d6\Node::prepareRow().
# If you are using this file to build a custom migration consider removing
# the nid and vid fields to allow incremental migrations.
# nid: tnid
# vid: vid
type:
plugin: default_value
default_value: autre_son
langcode:
plugin: default_value
source: language
default_value: "und"
title:
-
plugin: get
source: title
-
plugin: skip_on_empty
method: row
uid:
-
plugin: migration_lookup
migration: d6_edlp_users
source: node_uid
-
plugin: default_value
default_value: 1
# status: status
created: created
changed: changed
promote: promote
sticky: sticky
revision_uid: revision_uid
revision_log: log
revision_timestamp: timestamp
# body
'body/value': body
'body/format':
plugin: default_value
default_value: wysiwyg
# field_genre -> field_genres
field_genres:
plugin: migration_lookup
migration: d6_edlp_genres
source: genres
# field_artiste: field_locuteurs
# text -> entity ref terms
# instead of entity_generate, i create the term in prepareRow from plugin
field_locuteurs: locuteurs
# field_compositeur: field_collectionneurs
# text -> entity ref terms
# instead of entity_generate, i create the term in prepareRow from plugin
field_collectionneurs: collectionneurs
# # file
# # field_mp3 -> field_son
field_son:
plugin: migration_lookup
migration: d6_edlp_allfiles
source: sons_fid
# workflow
status:
plugin: static_map
source: workflow
map:
1: 0
2: 0
3: 1
4: 1
destination:
plugin: entity:node
migration_dependencies:
required:
- d6_edlp_users
- d6_edlp_entrees
- d6_edlp_genres
- d6_edlp_langues
- d6_edlp_allfiles
@@ -0,0 +1,48 @@
id: d6_edlp_users
label: Edlp Drupal 6 User accounts
migration_tags:
- Drupal 6
migration_group: d6_edlp
source:
plugin: d6_edlp_users
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: mail
created: created
access: access
login: login
status: status
timezone:
plugin: user_update_7002
source: timezone
langcode:
plugin: user_langcode
source: 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: default_value
default_value: "collectionneur"
destination:
plugin: entity:user
md5_passwords: true
migration_dependencies:
# required:
# - d6_user_role
optional:
- language
- default_language
@@ -0,0 +1,7 @@
id: d6_edlp
label: D6 Edlp
description: Drupal 6 edlp content migration to Drupal 8.
source_type: Drupal 6.
shared_configuration:
source:
key: legacy