Create file called phpcs.xml.dist to your repository root with following content:
<?xml version="1.0"?>
<ruleset name="Drupal Standard">
<description>A Drupal coding standard</description>
<config name="drupal_core_version" value="8"/>
| DRUPAL_HOSTNAME=drupal-contribute.docker.so |
| LOAD DATABASE | |
| FROM mysql://MY_PLANETSCALE_USERNAME:[email protected]/MY_DATABASE?sslmode=require | |
| INTO postgres://MY_NEON_USERNAME:endpoint=ep-MY_ENDPOINT_ID;MY_NEON_PASSWORD@ep-MY_ENDPOINT_ID.eu-central-1.aws.neon.tech/MY_DATABASE?sslmode=require | |
| WITH include drop, create tables, quote identifiers | |
| ALTER schema 'MY_DATABASE' rename to 'public' | |
| ; |
| <?php | |
| /** | |
| * @file | |
| * Fix mismatch entity and/or field definitions. | |
| */ | |
| $entity_type_manager = \Drupal::entityTypeManager(); | |
| $entity_type_manager->clearCachedDefinitions(); |
Instructions on how to do dist upgrade for Debian 9 servers used by Wodby:
First, stop all Docker related services:
systemctl stop kube-apiserver
systemctl stop kube-controller
systemctl stop kube-kubelet
systemctl stop kube-proxy
systemctl stop kube-scheduler| # | |
| # Enviromental values for Makefiles and for Docker Compose | |
| # | |
| # Project specific id/prefix. By default it's the project's foldername | |
| # This if here just for the explanation. Can be left out. | |
| #COMPOSE_PROJECT_NAME=custom | |
| # Local hostname | |
| DRUPAL_HOSTNAME=project.docker.so |
| ## Drupal profile switcher | |
| composer require 'drupal/profile_switcher:^1.0@alpha' | |
| drush en profile_switcher -y | |
| drush switch:profile minimal | |
| drush pmu profile_switcher -y | |
| composer remove drupal/profile_switcher | |
| drush cr | |
| drush status |
| trigger: | |
| branches: | |
| # These must have existing instance on Lagoon | |
| include: | |
| - dev | |
| - qa | |
| - main | |
| pool: | |
| vmImage: 'ubuntu-latest' |
Go to where ever your drupal webroot is:
$ drush @none dl utf8mb4_convert-7.x
$ cd ~/.drush/utf8mb4_convert
$ wget https://www.drupal.org/files/issues/utf8mb4_convert-skip_converted_tables.patch
$ patch -p1 < utf8mb4_convert-skip_converted_tables.patch
$ cd /back/to/your/drupal/webroot/
$ drush cc drush
$ drush utf8mb4-convert-databases