Blame view

sources/apps/search_lucene/appinfo/update.php 413 Bytes
d1bafeea1   Kload   [fix] Upgrade to ...
1
  <?php
6d9380f96   Cédric Dupont   Update sources OC...
2
  $currentVersion=OCP\Config::getAppValue('search_lucene', 'installed_version');
d1bafeea1   Kload   [fix] Upgrade to ...
3
4
5
6
7
8
9
10
  
  if (version_compare($currentVersion, '0.5.0', '<')) {
  	//force reindexing of files
  	$stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*lucene_status` WHERE 1=1');
  	$stmt->execute();
  	//clear old background jobs
  	$stmt = OCP\DB::prepare('DELETE FROM `*PREFIX*queuedtasks` WHERE `app`=?');
  	$stmt->execute(array('search_lucene'));
6d9380f96   Cédric Dupont   Update sources OC...
11
  }