mirror of
https://github.com/nextcloud/server.git
synced 2026-04-29 10:03:32 -04:00
use OC_DB::dropTable()
This commit is contained in:
parent
a7f6a051ad
commit
2bb902d028
2 changed files with 2 additions and 4 deletions
|
|
@ -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');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue