Marco Villegas
marvil07
Esta presentación está bajo una Licencia Creative Commons Attribution-ShareAlike 4.0 International.
* → D8
Contrib: migrate: D6, D7, ~2009.
The Economist.com data migration to Drupal (2010)
Core
$ git log --reverse -- core/modules/migrate/ |head -n5
commit 67f30bc0a1f0007f4725a87eb1f0b9525f5a9a8f
Author: Dries <dries@buytaert.net>
Date: Wed Nov 20 17:08:56 2013 -0500
Migrate in core #2125717 by mikeryan, chx, marvil07, bdone, jessehs, mpgeek, BTMash, fastangel, mongolito404, Moshe Weitzman, eliza411, YesCT, dawehner, cosmicdreams
Estable: 8.6.0 (Sep 2018)
font
, blink
, marquee
Migrate API ♥ Plugin API
+---------------------------------------------------+
| Migración |
| +---------+ +------------+ |
| | Origen1 | +---------------+ | Destino1 | |
| | idk1 | | Mapeo campo I | | idkZ | |
| | campo1 | | o.campo1 | | campoA | |
| | campo2 | | d.campoB | | campoB | |
| | ... | +---------------+ | ... | |
| +---------+ +------------+ |
| +-------------+ |
| | Mapeo o1-d1 | |
| | idk1 | |
| | idkZ | |
| +-------------+ |
+---------------------------------------------------+
source:
plugin: table
key: demo
table_name: usuarios
id_fields:
id:
type: integer
fields:
- id
- nombre
- correo
process:
name:
plugin: skip_on_empty
source: nombre
method: row
message: "No hay nombre"
mail: correo
destination:
plugin: entity:user
Migrar entidades:
Migrar relaciones entre datos:
N migraciones x M campos x C complejidad x F mágico
process:
uid:
plugin: migration_lookup
migration: user
source: node_uid
drewish
quietone