Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #704: Fixed update hooks. #724

Merged
merged 2 commits into from
Dec 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.6.0-beta1",
* description = "Moves configuration files to blt subdirectory. Removes .git/hooks symlink."
* )
*/
public function update_860() {
// 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.');
}


}