diff --git a/module/VuFind/src/VuFind/Controller/UpgradeController.php b/module/VuFind/src/VuFind/Controller/UpgradeController.php index 29e76900125188d9840268e41784c4ab388dde8b..35f27c45e83d47982d59ce0634cf2141d1ab1296 100644 --- a/module/VuFind/src/VuFind/Controller/UpgradeController.php +++ b/module/VuFind/src/VuFind/Controller/UpgradeController.php @@ -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'