Skip to content

Instantly share code, notes, and snippets.

@jedgar1mx
Last active November 27, 2018 18:42
Show Gist options
  • Save jedgar1mx/7da266387814cb13ba570f07704dc49a to your computer and use it in GitHub Desktop.
Save jedgar1mx/7da266387814cb13ba570f07704dc49a to your computer and use it in GitHub Desktop.
Upgrade process to migrate from varbase 8.4x using `media_entity` module, to varbase 8.6x using `media` core.

Starting installation

Varbase 8.4.27 - Drupal 8.5.8

  1. Upgrade media_entity to version 8.x-2.0-beta2 (supports drupal 5.x)

  2. Apply the patch undefined_function-2925498-2.patch found on https://www.drupal.org/project/media_entity/issues/2925498

  3. Apply the patch core fails on absent column revision_uid found on https://www.drupal.org/project/media_entity/issues/2918172

  4. Add the modules media_entity_actions, media_entity_generic

  5. Run drush mecu to find out if your installation is ready to migrate the media module (hint: it is not)

  6. Upgrade the modules as requested. In my case I upgreaded: config_perms, video_embed_field, varbase_media, varbase_core, varbase_bootstrap_paragraphs and varbase_carousels i downloaded the newest 8.6x version of the varbase modules

  7. Update to the newest version of varbase:8.6x

  8. Modify the file docroot/modules/contrib/varbase_media/varbase_media.module by commenting line 275:

    Override::pluginClass($sources['oembed:video'], VarbaseMediaRemoteVideo::class);

  9. Run drush cr

  10. Run drush updb, and your project will be migrated from media_entity to media core! (I did not lose any data/configuration on first inspection). 10b. (Optional) If you are running a local instance with defaults you might exaust your memory. Go to your settins.php and add: ini_set('memory_limit', '-1');

  11. Run a full upgrade by updating your composer.json and running composer update (delete vendor and composer.lock)

  12. Re-install panelizer module

  13. Run drush cr

  14. Run drush updb

  15. Run test to make sure everything is working and all your patches are migrated (acquia_search for me) . Disable media_entity, memedia_entity_actions, media_entity_generic and panelizer

  16. Get yourself a 🍺👍

Congratz you should be running on your new and shinning installation using Media core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment