Skip to content
Snippets Groups Projects

Clear Updates.

1 file
+ 18
0
Compare changes
  • Side-by-side
  • Inline
@@ -137,6 +137,24 @@ class ModuleCleanupDrushCommands extends DrushCommands {
}
}
/**
* Cleans up No available releases found errors in Available updates.
*
* @command modcup:clear-updates
* @aliases modcup-cu
* @usage modcup-cu
*/
public function clearUpdates() {
// Clears errors in Available updates.
if ($this->database->delete('key_value')->condition('collection', 'update_fetch_task')->execute()) {
$this->logger()->success($this->t('Avalable updates restored.'));
}
else {
$this->logger()->error($this->t('Clear updates failed to execute.'));
return self::EXIT_ERROR;
}
}
/**
* Deletes data from a module left over in the config table.
*
Loading