diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-02 18:57:53 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2014-06-02 18:57:53 +0200 |
commit | 2bb902d02864aa73d0985537552df4b076f5860b (patch) | |
tree | b2168e6b97e8be8a548744e88224f08a4b90be52 | |
parent | a7f6a051addf9545c895384e5e295fbfbf8f8df8 (diff) | |
download | nextcloud-server-2bb902d02864aa73d0985537552df4b076f5860b.tar.gz nextcloud-server-2bb902d02864aa73d0985537552df4b076f5860b.zip |
use OC_DB::dropTable()
-rw-r--r-- | apps/files_trashbin/appinfo/update.php | 3 | ||||
-rw-r--r-- | apps/files_versions/appinfo/update.php | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/apps/files_trashbin/appinfo/update.php b/apps/files_trashbin/appinfo/update.php index ca7b87a8681..191d3cf25d9 100644 --- a/apps/files_trashbin/appinfo/update.php +++ b/apps/files_trashbin/appinfo/update.php @@ -5,6 +5,5 @@ $installedVersion=OCP\Config::getAppValue('files_trashbin', 'installed_version') if (version_compare($installedVersion, '0.6', '<')) { //size of the trash bin could be incorrect, remove it for all users to //enforce a recalculation during next usage. - $query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trashsize`'); - $result = $query->execute(); + \OC_DB::dropTable('files_trashsize'); } diff --git a/apps/files_versions/appinfo/update.php b/apps/files_versions/appinfo/update.php index ee6d3c14c9a..fdc6b1e5f1b 100644 --- a/apps/files_versions/appinfo/update.php +++ b/apps/files_versions/appinfo/update.php @@ -3,6 +3,5 @@ $installedVersion=OCP\Config::getAppValue('files_versions', 'installed_version'); // move versions to new directory if (version_compare($installedVersion, '1.0.4', '<')) { - $query = \OCP\DB::prepare("DROP TABLE `*PREFIX*files_versions`"); - $query->execute(array()); + \OC_DB::dropTable("files_versions"); } |