Skip to content
This repository has been archived by the owner on Oct 30, 2018. It is now read-only.

ignoreTableNotFoundException #100

Closed
wants to merge 1 commit into from
Closed
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
8 changes: 6 additions & 2 deletions appinfo/update.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@

if (version_compare($currentVersion, '0.5.0', '<')) {
//clear old background jobs
$stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*queuedtasks` WHERE `app`=?');
$stmt->execute(array('search_lucene'));
try {
$stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*queuedtasks` WHERE `app`=?');
$stmt->execute(array('search_lucene'));
} catch (Doctrine\DBAL\Exception\TableNotFoundException $e) {
// ignore, nothing to delete
}
}