diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-08 15:16:33 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2013-10-08 16:00:18 +0200 |
commit | 68e1dd1f2355576937b06b112b5060ae3c9984c0 (patch) | |
tree | 65bb217787a7195ee5beb5fab0a6ddb83b59efbc /apps | |
parent | e7e53363acd07f386a172a136ef564a6b501096b (diff) | |
download | nextcloud-server-68e1dd1f2355576937b06b112b5060ae3c9984c0.tar.gz nextcloud-server-68e1dd1f2355576937b06b112b5060ae3c9984c0.zip |
make sure that we only remove file/folder shares
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/appinfo/update.php | 4 | ||||
-rw-r--r-- | apps/files_sharing/appinfo/version | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/files_sharing/appinfo/update.php b/apps/files_sharing/appinfo/update.php index bc33dd40437..87635a10b13 100644 --- a/apps/files_sharing/appinfo/update.php +++ b/apps/files_sharing/appinfo/update.php @@ -70,10 +70,10 @@ if (version_compare($installedVersion, '0.3', '<')) { } // clean up oc_share table from files which are no longer exists -if (version_compare($installedVersion, '0.3.4', '<')) { +if (version_compare($installedVersion, '0.3.5', '<')) { // get all shares where the original file no longer exists - $findShares = \OC_DB::prepare('SELECT `file_source` FROM `*PREFIX*share` LEFT JOIN `*PREFIX*filecache` ON `file_source` = `*PREFIX*filecache`.`fileid` WHERE `*PREFIX*filecache`.`fileid` IS NULL'); + $findShares = \OC_DB::prepare('SELECT `file_source` FROM `*PREFIX*share` LEFT JOIN `*PREFIX*filecache` ON `file_source` = `*PREFIX*filecache`.`fileid` WHERE `*PREFIX*filecache`.`fileid` IS NULL AND `*PREFIX*share`.`item_type` IN (`file`, `folder`)'); $sharesFound = $findShares->execute(array())->fetchAll(); // delete those shares from the oc_share table diff --git a/apps/files_sharing/appinfo/version b/apps/files_sharing/appinfo/version index 448a0fa11cd..09e9157034c 100644 --- a/apps/files_sharing/appinfo/version +++ b/apps/files_sharing/appinfo/version @@ -1 +1 @@ -0.3.4
\ No newline at end of file +0.3.5
\ No newline at end of file |