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/encryption/lib/migration.php | |
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/encryption/lib/migration.php')
-rw-r--r-- | apps/encryption/lib/migration.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/encryption/lib/migration.php b/apps/encryption/lib/migration.php index d22c571fd40..5396a7db627 100644 --- a/apps/encryption/lib/migration.php +++ b/apps/encryption/lib/migration.php @@ -72,7 +72,7 @@ class Migration { // only update during the first run if ($this->installedVersion !== '-1') { $query = $this->connection->getQueryBuilder(); - $query->update('*PREFIX*filecache') + $query->update('filecache') ->set('size', 'unencrypted_size') ->where($query->expr()->eq('encrypted', $query->createParameter('encrypted'))) ->setParameter('encrypted', 1); @@ -163,7 +163,7 @@ class Migration { $oldAppValues = $this->connection->getQueryBuilder(); $oldAppValues->select('*') - ->from('*PREFIX*appconfig') + ->from('appconfig') ->where($oldAppValues->expr()->eq('appid', $oldAppValues->createParameter('appid'))) ->setParameter('appid', 'files_encryption'); $appSettings = $oldAppValues->execute(); @@ -178,7 +178,7 @@ class Migration { $oldPreferences = $this->connection->getQueryBuilder(); $oldPreferences->select('*') - ->from('*PREFIX*preferences') + ->from('preferences') ->where($oldPreferences->expr()->eq('appid', $oldPreferences->createParameter('appid'))) ->setParameter('appid', 'files_encryption'); $preferenceSettings = $oldPreferences->execute(); |