test

repo here

Preparation DDEV (Preferred)

  1. Add ddev to the project ddev config (defaults are fine)
  2. Run composer install to pull in current dependencies
  3. Add the scripts in the ddev-web-commands directory to .ddev/commands/web/
  4. Start the site with ddev start
  5. Import the db with ddev import-db < [databasename]
  6. Flush caches ddev drush cr
  7. Run script with ddev d11prepare

Preparation (Lando)

  1. Run composer install to pull in current dependencies
  2. Add the script d11prepare.sh to the root project directory
  3. Start site with lando start
  4. Import the db with lando db-import [databasename]
  5. Flush caches lando drush cr
  6. Run script in root sh d11prepare.sh

Script operations

The script will first ask whether the site is based on a VPR, Science or other boilerplate. It then attempts to make the follwoing updates

Modules updated

  • Drush
  • Webform (+adds patch - not needed once https://www.drupal.org/project/webform/issues/3526888 is in a release)
  • File Delete
  • Formtips (needs to straddle versions: ^1.11||^2.0)
  • Gin (needs to straddle versions: ^4.1||^5.0)
  • Gin Toolbar (needs to straddle versions: ^2.1||^3.0)
  • Image Widget Crop
  • Linkit
  • Linkit Media Library
  • UBC Portfolio modules (does not include CWL or custom modules)
  • UBC Recipes

Additional updates

  • Add and install the Upgrade Status module (if needed)
  • Update the core version requirement to VPR and Science portfolio child themes
  • Prompt you to add the core version requirement if you're using a custom theme
  • alter the recipe location to the root directory
  • alter the .gitignore to remove /web/recipes/ and add /recipes/

Cleanup

You should see a large number of recipes files in /web/recipes/ - these should not be committed and can be safely discarded.

Next Steps

  1. Review and resolve the issues on the Upgrade Status page
  • /admin/reports/upgrade-status
  • Note that formtips will show as having an Incompatible local version, but that can be disregarded since we are straddling required versions. The updated version will be pulled in when core is updated.
  1. Backup work
  • Run database updates to ensure the latest changes are in place.
    ddev drush updb OR lando drush updb
  • Export database in case you want to roll back.
    ddev export-db --file=db.sql.gz OR lando db-export
  1. Run Update: also see Official Docs
  • Update permissions.

    chmod 777 web/sites/default
    chmod 666 web/sites/default/*settings.php
    chmod 666 web/sites/default/*services.yml
  • Change core without updating.

    composer require 'drupal/core-recommended:^11' \
    'drupal/core-composer-scaffold:^11' \
    'drupal/core-project-message:^11' --no-update
  • Perform the update dry-run
    composer update --dry-run
  • If no errors, perform the update
    composer update
  • Run database updates again.
    lando drush updb
  • Reinstate permissions (optional on local)

    chmod 777 web/sites/default
    chmod 666 web/sites/default/*settings.php
    chmod 666 web/sites/default/*services.yml
  1. Commit all changes

 

  1. fghjfj
    1. ghhkljkl
  2. ghkhjg

Page last updated on November 10, 2025


Urgent Message An exclamation mark in a speech bubble. Bluesky The logo for the Bluesky social media service. Bookmark A bookmark in a book. Browser A web browser window. Caret An arrowhead indicating direction. Arrow An arrow indicating direction. Arrow in Circle An arrow indicating direction. Arrow in Circle An arrow indicating direction. Time A clock. Chats Two speech clouds. E-commerce Cart A shopping cart. Facebook The logo for the Facebook social media service. Help A question mark in a circle. Home A house in silhouette. Information The letter 'i' in a circle. Instagram The logo for the Instagram social media service. Linkedin The logo for the LinkedIn social media service. Location Pin A map location pin. Locked A locked padlock. Mail An envelope. Menu Three horizontal lines indicating a menu. Minus A minus sign. Pencil A pencil indicating that this is editable. Telephone An antique telephone. Play A media play button. Plus A plus symbol indicating more or the ability to add. Print A printer pushing out a piece of paper. Search A magnifying glass. Settings A single gear. Arrow indicating share action A directional arrow. Speech Bubble A speech bubble. Star An outline of a star. Twitter / X The logo for the X (aka, Twitter) social media service. User A silhouette of a person. Vimeo The logo for the Vimeo video sharing service. Youtube The logo for the YouTube video sharing service.