jeremypeter → changed the visibility of the branch 3447954-support-for-media to hidden.
jeremypeter → changed the visibility of the branch 3447954-support-for-media to hidden.
jeremypeter → created an issue.
jeremypeter → created an issue.
Updating patch for Drupal 10
@frankangelone here's an example gist of a composer.json file that has these changes. It installs the patch by leveraging the cweagans/composer-patches package which allows you to install patches via composer the extra.patches object.
@frankangelone Along with adding the patch, add the following to the repositories array/object in your composer.json:
{
"type": "vcs",
"url": "https://github.com/elgandoz/tome_drush.git"
}
Then in your require object, update the drupal-tome/tome_drush package to:
"drupal-tome/tome_drush": "dev-dev-drush12"
Adding patch
jeremypeter → created an issue.
jeremypeter → created an issue.
To get Drupal 10 and Drush 12 to work, I needed to add this patch for the drupal-tome/tome_drush package and apply this patch that adds a drush.services.yml file to the tome_static and tome_sync sub-modules. However, support for the drush.services.yml file will be removed in Drush 13 according to Drush 12's documentation:
Drush 11 and prior required dependency injection via a drush.services.yml file. This approach is deprecated in Drush 12 and will be removed in Drush 13.
Adding new patch to fix additional compatibility issues based on the output of the Upgrade Status module. See export file for details → .
Took @rblackmore's code and modified it for drush:
drush ev '
$uuid = \Drupal::config("user.role.anonymous")->get("uuid");
$result = \Drupal::database()->insert("users")
->fields([
"uid" => 0,
"uuid" => $uuid,
"langcode" => "en",
])
->execute();
$merge = \Drupal::database()->merge("users")
->condition("uid", $result)
->fields([
"uid" => "0",
"uuid" => $uuid,
"langcode" => "en",
])
->execute();
'