Uncategorized

Drupal 6 to Drupal 8(.1.x) Custom Content Migration

Note: This blog post is based on Drupal 8.1.x. It is an updated version of a previous tutorial based on Drupal 8.0.x. While the concepts are largely the same as 8.0.x, a refactoring of the core migrate modules took place in Drupal 8.1.x (migrations will become plugins in 8.1.x). This updated tutorial updates the previous example to work with Drupal 8.1.x, as well as demonstrates how to specify a migration group and run the migration with Drush. If you’re familiar with the previous tutorial, you may want to skip to the “Rolling up our sleeves” section below.

Even if you’re only casually acquainted with Drupal 8, you probably know that the core upgrade path to Drupal 8 has been completely rewritten from the ground-up, using many of the concepts of the Migrate and Drupal-to-Drupal migration modules. Using the Migrate upgrade module, it is possible to migrate much of a Drupal 6 (or Drupal 7) site to Drupal 8 with a minimum of fuss (DrupalEasy.com is a prime example of this). “Migrate upgrade” is similar to previous Drupal core upgrade paths – there are no options to pick-and-choose what is to be migrated – it’s all-or-nothing. This blog post provides an example of how to migrate content from only a single, simple content type in a Drupal 6 site to a Drupal 8.1.x site, without writing any PHP code at all.

##Setting the table

First, some background information on how the Drupal 8 Migrate module is architected. The Migrate module revolves around three main concepts:

  • Source plugins – these are plugins that know how to get the particular data to be migrated. Drupal’s core “Migrate” module only contains base-level source plugins, often extended by other modules. Most Drupal core modules provide their own source plugins that know how to query Drupal 6 and Drupal 7 databases for data they’re responsible for. For example, the Drupal 8 core “Node” module contains source plugins for Drupal 6 and Drupal 7 nodes, node revisions, node types, etc… Additionally, contributed and custom modules can provide additional source plugins for other CMSes (WordPress, Joomla, etc…), database types (Oracle, MSSQL, etc…), and data formats (CSV, XML, JSON, etc.)
  • Process plugins – these are plugins designed to receive data from source plugins, then massage it into the proper form for the destination on a per-field basis. Multiple process plugins can be applied to a single piece of data. Drupal core provides various useful process plugins, but custom and contributed modules can easily implement their own.
  • Destination plugins – these are plugins that know how to receive data from the process plugins and create the appropriate Drupal 8 “thing”. The Drupal 8 core “Migrate” module contains general-purpose destination plugins for configuration and content entities, while individual modules can extend that support where their data requires specialized processing.

Together, the Source -> Process -> Destination structure is often called the “pipeline”.

It is important to understand that for basic Drupal 6 to Drupal 8 migrations (like this example), all of the code is already present – all the developer needs to do it to configure the migration. It is much like preparing a meal where you already have a kitchen full of tools and food – the chef only needs to assemble what is already there.

 

click here 1001
click here 1002
click here 1003
click here 1004
click here 1005
click here 1006
click here 1007
click here 1008
click here 1009
click here 1010
click here 1011
click here 1012
click here 1013
click here 1014
click here 1015
click here 1016
click here 1017
click here 1018
click here 1019
click here 1020
click here 1021
click here 1022
click here 1023
click here 1024
click here 1025
click here 1026
click here 1027
click here 1028
click here 1029
click here 1030
click here 1031
click here 1032
click here 1033
click here 1034
click here 1035
click here 1036
click here 1037
click here 1038
click here 1039
click here 1040
click here 1041
click here 1042
click here 1043
click here 1044
click here 1045
click here 1046
click here 1047
click here 1048
click here 1049
click here 1050
click here 1051
click here 1052
click here 1053
click here 1054
click here 1055
click here 1056
click here 1057
click here 1058
click here 1059
click here 1060
click here 1061
click here 1062
click here 1063
click here 1064
click here 1065
click here 1066
click here 1067
click here 1068
click here 1069
click here 1070
click here 1071
click here 1072
click here 1073
click here 1074
click here 1075
click here 1076
click here 1077
click here 1078
click here 1079
click here 1080
click here 1081
click here 1082
click here 1083
click here 1084
click here 1085
click here 1086
click here 1087
click here 1088
click here 1089
click here 1090
click here 1091
click here 1092
click here 1093
click here 1094
click here 1095
click here 1096
click here 1097
click here 1098
click here 1099
click here 1100
click here 1101
click here 1102
click here 1103
click here 1104
click here 1105
click here 1106
click here 1107
click here 1108
click here 1109
click here 1110
click here 1111
click here 1112
click here 1113
click here 1114
click here 1115
click here 1116
click here 1117
click here 1118
click here 1119
click here 1120
click here 1121
click here 1122
click here 1123
click here 1124
click here 1125
click here 1126
click here 1127
click here 1128
click here 1129
click here 1130
click here 1131
click here 1132
click here 1133
click here 1134
click here 1135
click here 1136
click here 1137
click here 1138
click here 1139
click here 1140
click here 1141
click here 1142
click here 1143
click here 1144
click here 1145
click here 1146
click here 1147
click here 1148
click here 1149
click here 1150
click here 1151
click here 1152
click here 1153
click here 1154
click here 1155
click here 1156
click here 1157
click here 1158
click here 1159
click here 1160
click here 1161
click here 1162
click here 1163
click here 1164
click here 1165
click here 1166
click here 1167
click here 1168
click here 1169
click here 1170
click here 1171
click here 1172
click here 1173
click here 1174
click here 1175
click here 1176
click here 1177
click here 1178
click here 1179
click here 1180
click here 1181
click here 1182
click here 1183
click here 1184
click here 1185
click here 1186
click here 1187
click here 1188
click here 1189
click here 1190
click here 1191
click here 1192
click here 1193
click here 1194
click here 1195
click here 1196
click here 1197
click here 1198
click here 1199
click here 1200
click here 1201
click here 1202
click here 1203
click here 1204
click here 1205
click here 1206
click here 1207
click here 1208
click here 1209
click here 1210
click here 1211
click here 1212
click here 1213
click here 1214
click here 1215
click here 1216
click here 1217
click here 1218
click here 1219
click here 1220
click here 1221
click here 1222
click here 1223
click here 1224
click here 1225
click here 1226
click here 1227
click here 1228
click here 1229
click here 1230
click here 1231
click here 1232
click here 1233
click here 1234
click here 1235
click here 1236
click here 1237
click here 1238
click here 1239
click here 1240
click here 1241
click here 1242
click here 1243
click here 1244
click here 1245
click here 1246
click here 1247
click here 1248
click here 1249
click here 1250
click here 1251
click here 1252
click here 1253
click here 1254
click here 1255
click here 1256
click here 1257
click here 1258
click here 1259
click here 1260
click here 1261
click here 1262
click here 1263
click here 1264
click here 1265
click here 1266
click here 1267
click here 1268
click here 1269
click here 1270
click here 1271
click here 1272
click here 1273
click here 1274
click here 1275
click here 1276
click here 1277
click here 1278
click here 1279
click here 1280
click here 1281
click here 1282
click here 1283
click here 1284
click here 1285
click here 1286
click here 1287
click here 1288
click here 1289
click here 1290
click here 1291
click here 1292
click here 1293
click here 1294
click here 1295
click here 1296
click here 1297
click here 1298
click here 1299
click here 1300
click here 1301
click here 1302
click here 1303
click here 1304
click here 1305
click here 1306
click here 1307
click here 1308
click here 1309
click here 1310
click here 1311
click here 1312
click here 1313
click here 1314
click here 1315
click here 1316
click here 1317
click here 1318
click here 1319
click here 1320
click here 1321
click here 1322
click here 1323
click here 1324
click here 1325
click here 1326
click here 1327
click here 1328
click here 1329
click here 1330
click here 1331
click here 1332
click here 1333
click here 1334
click here 1335
click here 1336
click here 1337
click here 1338
click here 1339
click here 1340
click here 1341
click here 1342
click here 1343
click here 1344
click here 1345
click here 1346
click here 1347
click here 1348
click here 1349
click here 1350
click here 1351
click here 1352
click here 1353
click here 1354
click here 1355
click here 1356
click here 1357
click here 1358
click here 1359
click here 1360
click here 1361
click here 1362
click here 1363
click here 1364
click here 1365
click here 1366
click here 1367
click here 1368
click here 1369
click here 1370
click here 1371
click here 1372
click here 1373
click here 1374
click here 1375
click here 1376
click here 1377
click here 1378
click here 1379
click here 1380
click here 1381
click here 1382
click here 1383
click here 1384
click here 1385
click here 1386
click here 1387
click here 1388
click here 1389
click here 1390
click here 1391
click here 1392
click here 1393
click here 1394
click here 1395
click here 1396
click here 1397
click here 1398
click here 1399
click here 1400
click here 1401
click here 1402
click here 1403
click here 1404
click here 1405
click here 1406
click here 1407
click here 1408
click here 1409
click here 1410
click here 1411
click here 1412
click here 1413
click here 1414
click here 1415
click here 1416
click here 1417
click here 1418
click here 1419
click here 1420
click here 1421
click here 1422
click here 1423
click here 1424
click here 1425
click here 1426
click here 1427
click here 1428
click here 1429
click here 1430
click here 1431
click here 1432
click here 1433
click here 1434
click here 1435
click here 1436
click here 1437
click here 1438
click here 1439
click here 1440
click here 1441
click here 1442
click here 1443
click here 1444
click here 1445
click here 1446
click here 1447
click here 1448
click here 1449
click here 1450
click here 1451
click here 1452
click here 1453
click here 1454
click here 1455
click here 1456
click here 1457
click here 1458
click here 1459
click here 1460
click here 1461
click here 1462
click here 1463
click here 1464
click here 1465
click here 1466
click here 1467
click here 1468
click here 1469
click here 1470
click here 1471
click here 1472
click here 1473
click here 1474
click here 1475
click here 1476
click here 1477
click here 1478
click here 1479
click here 1480
click here 1481
click here 1482
click here 1483
click here 1484
click here 1485
click here 1486
click here 1487
click here 1488
click here 1489
click here 1490
click here 1491
click here 1492
click here 1493
click here 1494
click here 1495
click here 1496
click here 1497
click here 1498
click here 1499
click here 1500

Related Articles

Leave a Reply

Back to top button