diff options
author | Joas Schilling <nickvergessen@owncloud.com> | 2015-08-10 16:21:41 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@owncloud.com> | 2015-08-10 16:21:41 +0200 |
commit | e6eb74958fd9779362fbde788cbfac982783abc0 (patch) | |
tree | 500b7b12008967002ea3f86ddd1e2ed9602ba76e /apps/files_trashbin | |
parent | 5fea6f753e27939a693041288d46115154dac051 (diff) | |
download | nextcloud-server-e6eb74958fd9779362fbde788cbfac982783abc0.tar.gz nextcloud-server-e6eb74958fd9779362fbde788cbfac982783abc0.zip |
Remove unnecessary DB prefixes from existing query builder usages
Diffstat (limited to 'apps/files_trashbin')
-rw-r--r-- | apps/files_trashbin/command/cleanup.php | 2 | ||||
-rw-r--r-- | apps/files_trashbin/tests/command/cleanuptest.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_trashbin/command/cleanup.php b/apps/files_trashbin/command/cleanup.php index 0cc94912339..60717abac18 100644 --- a/apps/files_trashbin/command/cleanup.php +++ b/apps/files_trashbin/command/cleanup.php @@ -108,7 +108,7 @@ class CleanUp extends Command { if ($this->rootFolder->nodeExists('/' . $uid . '/files_trashbin')) { $this->rootFolder->get('/' . $uid . '/files_trashbin')->delete(); $query = $this->dbConnection->getQueryBuilder(); - $query->delete('*PREFIX*files_trash') + $query->delete('files_trash') ->where($query->expr()->eq('user', $query->createParameter('uid'))) ->setParameter('uid', $uid); $query->execute(); diff --git a/apps/files_trashbin/tests/command/cleanuptest.php b/apps/files_trashbin/tests/command/cleanuptest.php index a7400e901fa..d4cccee448e 100644 --- a/apps/files_trashbin/tests/command/cleanuptest.php +++ b/apps/files_trashbin/tests/command/cleanuptest.php @@ -43,7 +43,7 @@ class CleanUpTest extends TestCase { protected $dbConnection; /** @var string */ - protected $trashTable = '*PREFIX*files_trash'; + protected $trashTable = 'files_trash'; /** @var string */ protected $user0 = 'user0'; |