[Pkg-owncloud-commits] [owncloud] 109/131: add condition to update query
David Prévot
taffit at moszumanska.debian.org
Tue Aug 11 15:58:42 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.1.1
in repository owncloud.
commit 036ba93ded5a423ca8e96aaff5a1dc0528fe98a9
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date: Mon Jul 27 12:08:13 2015 +0200
add condition to update query
---
apps/files/appinfo/update.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php
index d11a623..2691c05 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)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list