simply migration: drupal 7 to 8 with one click€¦ · introduction website migrations starting 4.7...
TRANSCRIPT
![Page 1: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/1.jpg)
Simply migration: Drupal 7 to 8 with one click
Case study :: Work in progress Irina Zaks [email protected] http://fibonacciwebstudio.com/
![Page 2: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/2.jpg)
Introduction Website migrations starting 4.7 to
5, 6, 7 Drupal content migration
between major versions – major issue
Drupal upgrade in version 8 one of most pleasant surprises
![Page 3: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/3.jpg)
In this demo We will talk about Standard Upgrade
via web interface Customizing
migration paths Drupal 8 Stanford-
look theme Using Features for
layouts with blocks and views
We will not discuss Any DevOps
questions Twig Composer All great new things
in Drupal 8 World Peace .... and many more
![Page 4: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/4.jpg)
4.7 to 5 to 6 Always an adventure
![Page 5: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/5.jpg)
6 to 7 Routine exercise using feeds
![Page 6: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/6.jpg)
6/7 to 8 Pleasant walk in the park
![Page 7: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/7.jpg)
STORY OF OUR JOURNEY
![Page 8: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/8.jpg)
DevOps Thanks to Pantheon Dev / test / multidev instances Backups Db / files export/import Drush
![Page 9: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/9.jpg)
What we had Drupal 7 site with will organized
content ◦ Stanford Modules – page, news, events,
person ◦ Custom modules – research project,
research topic, etc. Visual design for new layouts with
Stanford look and feel
![Page 10: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/10.jpg)
What we did not have Drupal 8 Stanford-look theme Modules to provide functionality of the
new site ◦ Feeds for ongoing imports including
people profiles ◦ Workflows via Rules
Content migration process
![Page 11: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/11.jpg)
Beginning the journey Set up new site on Pantheon http://dev-standford-drupalcamp-
demo-8.pantheonsite.io/
![Page 12: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/12.jpg)
Theme Developed new theme consistent with
current theme for sites.stanford.edu Bootstrap based Stanford light 728 https://bitbucket.org/izaks/
stanford_light_728
![Page 13: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/13.jpg)
Modules Review modules that we used in Drupal 7 Add on first install
1. Admin Toolbar (replaces Admin Menu) 2. Pathauto (requires token and ctools) 3. Devel 4. Features 5. Display Suite
Ready for use - optional 1. Paragraphs (better version of field collections) 2. Webform
Still in development ◦ Feeds ◦ Rules
![Page 14: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/14.jpg)
Demo setup Hosted on Pantheon Drupal 7 site
http://dev-standford-drupalcamp-demo-7.pantheonsite.io/ ◦ Front page ◦ Stanford Page with image and link in main
menu ◦ Stanford News content type (module) ◦ Recent news views with menu link set in
views
![Page 15: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/15.jpg)
Demo Enable Migrate, Migrate Drupal,
Migrate Drupal UI -> Configure http://dev-standford-drupalcamp-
demo-8.pantheonsite.io/upgrade Upgrade via web interface
![Page 16: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/16.jpg)
Connect to “origin” site Db - dbserver.dev.
63f81f1d-580b-4339-b576-15bee906f55f.drush.in
User / db pantheon Password
7fae4673aac34f0c9572af794926f06a port 22216 File path http://dev-standford-
drupalcamp-demo-7.pantheonsite.io/
![Page 17: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/17.jpg)
List of default migration paths 17 available upgrade paths ◦ core modules
49 missing upgrade paths ◦ contrib modules ◦ other features
Continue
![Page 18: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/18.jpg)
Demo – Recent Log messages admin/reports/dblog?page=1
http://dev-standford-drupalcamp-demo-8.pantheonsite.io/upgrade
![Page 19: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/19.jpg)
Standard upgrade – what works Menu items – set in menus, not views Creates content types / fields even if
there is no nodes of this content type Moves content – nid’s are preserved Url aliases Moves users / roles Reports every step of upgrade in a log Not found or access denied links go to
front page by default
![Page 20: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/20.jpg)
Standard upgrade – what does not work Date field comes with incorrect format “Plain HTML” format does not work as
expected Field collections do not have upgrade
path Other issues we are discovering as
we go
![Page 21: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/21.jpg)
Other notes from migration We used Features for ◦ Views ◦ Blocks configuration - migrated but not set
in same regions Migration rollbacks ◦ Pantheon Backup
![Page 22: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/22.jpg)
ENTERS DRUSH
![Page 23: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/23.jpg)
Custom updates with drush Add modules ◦ Drupal Upgrade ◦ Migrate Tools ◦ Migrate Manifest ◦ Migrate Plus
drush migrate-upgrade [options] – config-only (does not move content)
drush migrate-status (optional) drush migrate-manifest manifest-
news.yml, manifest-events.yml
![Page 24: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/24.jpg)
Migrate Manifest Standard manifest installed with
Migrate Manifest Module in root directory /manifest.yml
Intercept standard upgrade and launch custom manifest(s) ◦ /manifest2.yml ◦ /manifest-news.yml ◦ /manifest-date.yml
![Page 25: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/25.jpg)
Custom migrations Date format - completed Problem: Date format changed ◦ Drupal 7 1994-11-05 08:15:30-05:00 ◦ Drupal 8 1994-11-05T08:15:30-05:00
Solution ◦ manifest-news.yml calls to custom module
(d7_node_stanford_news) ◦ d7_node_stanford_news module includes
configuration for migration field_s_new_date:
Plugin: convert_date Source: field_s_news_date
◦ Plugin ConvertDate.php Converts date
![Page 26: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/26.jpg)
Custom Migrations Field Format – work in progress
Drupal 7 – text field Drupal 8 – new field
![Page 27: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/27.jpg)
Migrations and updates One time migration full migration Ongoing updates from Drupal 7 to
Drupal 8 sites Feeds from other sites
![Page 28: Simply migration: Drupal 7 to 8 with one click€¦ · Introduction Website migrations starting 4.7 to 5, 6, 7 Drupal content migration between major versions – major issue Drupal](https://reader033.vdocuments.net/reader033/viewer/2022042411/5f298712297f7331f458f588/html5/thumbnails/28.jpg)
Next steps and wish list Date standard upgrade path Views upgrade path – some modules
in development Feeds module for Drupal 8 Rules updates for Drupal 8