Skip to content

Commit

Permalink
Issue acquia#704: Fixed update hooks.
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Dec 1, 2016
1 parent cbba911 commit 8dd3fa7
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Update/Updates.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,20 @@ public function __construct(Updater $updater) {
/**
* @Update(
* version = "8.5.1",
* description = "Removes deprecated features patch. Moves configuration files to blt subdirectory. Removes .git/hooks symlink."
* description = "Removes deprecated features patch."
* )
*/
public function update_851() {
$this->updater->removePatch("drupal/features", "https://www.drupal.org/files/issues/features-2808303-2.patch");
}

/**
* @Update(
* version = "8.5.2",
* description = "Moves configuration files to blt subdirectory. Removes .git/hooks symlink."
* )
*/
public function update_852() {
// Move files to blt subdir.
$this->updater->moveFile('project.yml', 'blt/project.yml', TRUE);
$this->updater->moveFile('project.local.yml', 'blt/project.local.yml', TRUE);
Expand All @@ -45,4 +53,5 @@ public function update_851() {
$this->updater->getOutput()->writeln('.git/hooks was deleted. Please re-run setup:git-hooks to install git hooks locally.');
}


}

0 comments on commit 8dd3fa7

Please sign in to comment.