From 2bb902d02864aa73d0985537552df4b076f5860b Mon Sep 17 00:00:00 2001 From: Thomas Müller Date: Mon, 2 Jun 2014 18:57:53 +0200 Subject: use OC_DB::dropTable() --- apps/files_versions/appinfo/update.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/files_versions/appinfo') 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"); } -- cgit v1.2.3