2016-08-31 14:24:18 +00:00
|
|
|
# Every migration that references a file by Drupal 6 fid should specify this
|
|
|
|
# migration as an optional dependency.
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
id: d6_file
|
2017-10-18 15:40:19 +00:00
|
|
|
label: Public files
|
Issue #2876085 by heddn, maxocub, phenaproxima, Jo Fitzgerald, vasi, quietone, yoroy, masipila, larowlan, neclimdul, krystalcode, catch: Before upgrading, audit for potential ID conflicts
2017-12-15 22:36:36 +00:00
|
|
|
audit: true
|
2015-05-28 02:31:07 +00:00
|
|
|
migration_tags:
|
2014-07-15 10:37:53 +00:00
|
|
|
- Drupal 6
|
Issue #2711099 by heddn, Jo Fitzgerald, edysmp, edgewl2, alexpott, Charlotte17, mikeryan, masipila, quietone, maxocub, phenaproxima: Categorize migrations according to their type
2018-02-15 06:27:23 +00:00
|
|
|
- Content
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
source:
|
|
|
|
plugin: d6_file
|
2016-08-31 14:24:18 +00:00
|
|
|
constants:
|
2017-04-06 18:07:33 +00:00
|
|
|
# The tool configuring this migration must set source_base_path. It
|
2016-08-31 14:24:18 +00:00
|
|
|
# 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: ''
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
process:
|
2016-11-09 14:09:00 +00:00
|
|
|
# If you are using both this migration and d6_user_picture_file in a custom
|
2017-03-27 14:39:52 +00:00
|
|
|
# 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
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
filename: filename
|
2016-08-31 14:24:18 +00:00
|
|
|
source_full_path:
|
|
|
|
-
|
|
|
|
plugin: concat
|
|
|
|
delimiter: /
|
|
|
|
source:
|
|
|
|
- constants/source_base_path
|
|
|
|
- filepath
|
|
|
|
-
|
|
|
|
plugin: urlencode
|
|
|
|
destination_full_path:
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
plugin: file_uri
|
|
|
|
source:
|
|
|
|
- filepath
|
|
|
|
- file_directory_path
|
2015-01-10 13:28:29 +00:00
|
|
|
- temp_directory_path
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
- is_public
|
2016-08-31 14:24:18 +00:00
|
|
|
uri:
|
|
|
|
plugin: file_copy
|
|
|
|
source:
|
|
|
|
- '@source_full_path'
|
|
|
|
- '@destination_full_path'
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
filemime: filemime
|
2017-03-14 09:31:43 +00:00
|
|
|
# No need to migrate filesize, it is computed when file entities are saved.
|
|
|
|
# filesize: filesize
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
status: status
|
|
|
|
changed: timestamp
|
2015-05-20 16:19:57 +00:00
|
|
|
uid: uid
|
Issue #2121299 by andypost, bdone, benjy, penyaskito, chx, claudiu.cristea, damiankloip, gregboggs, InternetDevels, jessehs, jhedstrom, marvil07, mikeryan, pcambra, Xano, YesCT, axoplasm, kgoel, dclavain, jeckman, alvar0hurtad0, Drupali, fastangel, gloob, jhedstrom, joshtaylor, mpgeek, alexpott: Migrate Drupal 6 to Drupal 8
2014-04-23 15:46:22 +00:00
|
|
|
destination:
|
|
|
|
plugin: entity:file
|