summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2017-05-15 09:57:41 +0200
committerJoas Schilling <coding@schilljs.com>2017-05-18 10:49:03 +0200
commit0e325756c384b1bbf1fdd8cc9ad7857aa2d43b53 (patch)
treebbf9e53378055fda7409202f21753ef7aa71d4bb
parentc6a5a25b4833065a040fcbeaf0f85e21254ce6c8 (diff)
downloadnextcloud-server-0e325756c384b1bbf1fdd8cc9ad7857aa2d43b53.tar.gz
nextcloud-server-0e325756c384b1bbf1fdd8cc9ad7857aa2d43b53.zip
Avoid problems for some DBs by removing the table completly
Signed-off-by: Joas Schilling <coding@schilljs.com>
-rw-r--r--lib/private/Repair/Owncloud/SaveAccountsTableData.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/private/Repair/Owncloud/SaveAccountsTableData.php b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
index 0c3fc67d7d9..f441462435a 100644
--- a/lib/private/Repair/Owncloud/SaveAccountsTableData.php
+++ b/lib/private/Repair/Owncloud/SaveAccountsTableData.php
@@ -77,10 +77,8 @@ class SaveAccountsTableData implements IRepairStep {
$numUsers = $this->runStep($offset);
}
- // Clear the table
- $query = $this->db->getQueryBuilder();
- $query->delete('accounts');
- $query->execute();
+ // Remove the table
+ $this->db->dropTable('accounts');
}
/**