summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/lib/util.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-09-03 13:24:30 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-09-03 13:24:30 +0200
commit3d49631b8d6a7cee9e4c9d4aedadf44304426fdb (patch)
tree01c9622d54c9ee35d0ba7d08709a6c23ff2c54ee /apps/files_encryption/lib/util.php
parent84aba4542d91cba9d13d77aa346a81e5306e2e06 (diff)
downloadnextcloud-server-3d49631b8d6a7cee9e4c9d4aedadf44304426fdb.tar.gz
nextcloud-server-3d49631b8d6a7cee9e4c9d4aedadf44304426fdb.zip
make sure that initial encryption also starts for a fresh installation
Diffstat (limited to 'apps/files_encryption/lib/util.php')
-rw-r--r--apps/files_encryption/lib/util.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/files_encryption/lib/util.php b/apps/files_encryption/lib/util.php
index b8d68623493..9bc5300076a 100644
--- a/apps/files_encryption/lib/util.php
+++ b/apps/files_encryption/lib/util.php
@@ -201,10 +201,11 @@ class Util {
if (false === $this->recoveryEnabledForUser()) {
// create database configuration
- $sql = 'INSERT INTO `*PREFIX*encryption` (`uid`,`mode`,`recovery_enabled`) VALUES (?,?,?)';
+ $sql = 'INSERT INTO `*PREFIX*encryption` (`uid`,`mode`,`recovery_enabled`,`migration_status`) VALUES (?,?,?,?)';
$args = array(
$this->userId,
'server-side',
+ 0,
0
);
$query = \OCP\DB::prepare($sql);