acquia / lightning-project

A Composer-based installer for the Lightning distribution of Drupal 8. Support ended on November 2, 2021 and this project is no longer maintained.
133 stars 60 forks source link

How to upgrade #83

Closed cesardmoro closed 6 years ago

cesardmoro commented 6 years ago

There is any documentatión on how to upgrade ? im looking but cannot find. 2.1.8 running drupal 8.3.9 i need to update to 8.6

cesardmoro commented 6 years ago

Updating to 2.1.8 to 3.2.0

Hope it helps someone:

./bin/drupal update:lightning

2.1.7 a 2.2.0

composer require drupal/core:8.4.0 --no-update composer require acquia/lightning:~2.2.0 --no-update composer update --with-dependencies correr update.php

./bin/drupal update:lightning

2.2.0 a 2.2.2

composer require acquia/lightning:~2.2.2 --no-update composer update --with-dependencies drush media-entity-check-upgrade correr update.php ./bin/drupal update:lightning

2.2.2 a 2.2.4

composer require drupal/core:8.4.1 --no-update composer require acquia/lightning:~2.2.4 --no-update composer update --with-dependencies correr update.php ./bin/drupal update:lightning --since=2.2.2 --no-interaction

2.2.4 a 2.2.6

composer require drupal/core:8.4.3 --no-update composer require acquia/lightning:~2.2.6 --no-update composer update --with-dependencies correr update.php ./bin/drupal update:lightning 2.2.4 --no-interaction

2.2.6 - 3.0.0

Desahabilitar el module Scheduled updates, Es importante no desloguear y estar logueado al sitio Abrir composer.json y borrar el require de drupal 8.4.3 (Borrar toda la linea 27 y la coma de la linea anterior: "drupal/core": "8.4.3") composer require acquia/lightning:~3.0.0 --no-update composer update --with-dependencies

correr update.php ./bin/drupal update:lightning 2.2.6 --no-interaction En este momento el sitio empieza a dar un error: You have requested a non-existent service "content_moderation.moderation_information" Navegar a /admin/modules Activar los modulos Workflows y Content Moderation

3.0.0 a 3.1.0

composer require drupal/core:8.5.3 --no-update composer require acquia/lightning:~3.1.0 --no-update composer require drupal/page_manager --no-update composer update --with-dependencies

correr update.php ./bin/drupal update:lightning --no-interaction

3.1.0 a 3.1.5

composer require drupal/core:8.5.7 --no-update composer require acquia/lightning:~3.1.5 --no-update composer require --dev drupal/drupal-extension:~3.4.0 --no-update composer update --with-dependencies

correr update.php ./bin/drupal update:lightning --no-interaction

3.1.0 a 3.2.0

composer require drupal/core:8.6.1 --no-update composer require acquia/lightning:~3.2.0 --no-update composer update --with-dependencies

correr update.php ./bin/drupal update:lightning --no-interaction

scvinodkumar commented 4 years ago

@cesardmoro I am updating Acquia Lightning version from 3.1.5 to 4.1.1. This is first time I am doing update in Drupal8. Could you please check and confirm is below steps is right or wrong? I am updating from 3.1.5 to 3.1.6.

Do I need to run again "composer update"?

cesardmoro commented 4 years ago

Yes i would recomend to run composer update before every drupal update & lightning update.

scvinodkumar commented 4 years ago

okay so it would be like below

composer self-update composer update composer require acquia/lightning:~3.1.6 --no-update composer update acquia/lightning --with-all-dependencies drush updb drush cr