aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/appinfo/update.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-07-27 12:08:13 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-07-27 12:08:13 +0200
commit5923270004ac0b74ab464dd8c058c59628c960b0 (patch)
tree56c97122225e05a4777e2c07e4b897739ea1f12c /apps/files/appinfo/update.php
parent20cf8ec205fb796ec919071f193b7f6f1ab2ae76 (diff)
downloadnextcloud-server-5923270004ac0b74ab464dd8c058c59628c960b0.tar.gz
nextcloud-server-5923270004ac0b74ab464dd8c058c59628c960b0.zip
add condition to update query
Diffstat (limited to 'apps/files/appinfo/update.php')
-rw-r--r--apps/files/appinfo/update.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php
index d11a6237ad6..2691c05c348 100644
--- a/apps/files/appinfo/update.php
+++ b/apps/files/appinfo/update.php
@@ -49,7 +49,7 @@ $ocVersion = explode('.', \OC::$server->getSystemConfig()->getValue('version'));
* @param \OCP\IDBConnection $conn
*/
function owncloud_reset_encrypted_flag(\OCP\IDBConnection $conn) {
- $conn->executeUpdate('UPDATE `*PREFIX*filecache` SET `encrypted` = 0');
+ $conn->executeUpdate('UPDATE `*PREFIX*filecache` SET `encrypted` = 0 WHERE `encrypted` = 1');
}
// Current version of ownCloud before the update is 8.1.0 or 8.2.0.(0-2)