diff options
author | Vincent Petry <pvince81@owncloud.com> | 2016-01-28 15:49:33 +0100 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2016-01-29 11:51:47 +0100 |
commit | f0caf4123220737aba2a5873f5bace84851a9f8a (patch) | |
tree | cd17f3bc4d001d7a0c8bfc71b6f3bb939452631d /apps/files/appinfo/update.php | |
parent | 1765e11f7573e61ae4506111ca60a51818a3788a (diff) | |
download | nextcloud-server-f0caf4123220737aba2a5873f5bace84851a9f8a.tar.gz nextcloud-server-f0caf4123220737aba2a5873f5bace84851a9f8a.zip |
Cleanup job for system and user tag orphaned when file was deleted
Whenever a file was deleted (also from trash), the tag mapping is
pointing at a fileid that doesn't exist any more.
This cleanup job will delete such orphaned mapping entries.
Diffstat (limited to 'apps/files/appinfo/update.php')
-rw-r--r-- | apps/files/appinfo/update.php | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php index df13696ab42..003f6916ac5 100644 --- a/apps/files/appinfo/update.php +++ b/apps/files/appinfo/update.php @@ -98,15 +98,5 @@ if ($installedVersion === '1.1.9' && ( } // Add cron job for scanning user storages -$jobList = \OC::$server->getJobList(); -$job = 'OCA\Files\BackgroundJob\ScanFiles'; -\OC::$server->getJobList()->add($job); - -/** - * migrate old constant DEBUG to new config value 'debug' - * - * TODO: remove this in ownCloud 8.3 - */ -if(defined('DEBUG') && DEBUG === true) { - \OC::$server->getConfig()->setSystemValue('debug', true); -} +\OC::$server->getJobList()->add('OCA\Files\BackgroundJob\ScanFiles'); +\OC::$server->getJobList()->add('OCA\Files\BackgroundJob\DeleteOrphanedTagsJob'); |