/**
* Runs the update query to apply the change to the database
*
* @return void
*
* @since 2.5
*/
public function fix()
{
if ($this->checkStatus === -2) {
// At this point we have a failed query
$query = $this->updateQuery;
try {
$this->db->setQuery($query);
$this->db->execute();
if ($this->check()) {
$this->checkStatus = 1;
$this->rerunStatus = 1;
} else {
$this->rerunStatus = -2;
}
} catch (ExecutionFailureException|\RuntimeException $e) {
$this->rerunStatus = -2;
}
}
}