Skip to content
Snippets Groups Projects
Commit 7812c70e authored by André Lahmann's avatar André Lahmann Committed by Demian Katz
Browse files

* moved call of method fixSearchChecksumsInDatabase in...

* moved call of method fixSearchChecksumsInDatabase in UpgradeController->fixdatabaseAction into a try-catch block as we cannot know if the column checksum already exists -- refs VUFIND-1163

- Resolves VUFIND-1163.
parent 88ff003d
No related merge requests found
......@@ -442,8 +442,17 @@ class UpgradeController extends AbstractBase
// Clean up the "VuFind" source, if necessary.
$this->fixVuFindSourceInDatabase();
// Add checksums to all saved searches
$this->fixSearchChecksumsInDatabase();
// Add checksums to all saved searches but catch exceptions (e.g. in case
// column checksum does not exist yet because of sqllog).
try {
$this->fixSearchChecksumsInDatabase();
} catch (\Exception $e) {
$this->session->warnings->append(
'Could not fix checksums in table search - maybe column ' .
'checksum is missing? Exception thrown with ' .
'message: ' . $e->getMessage()
);
}
} catch (\Exception $e) {
$this->flashMessenger()->addMessage(
'Database upgrade failed: ' . $e->getMessage(), 'error'
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment