update.php 362 B

1234567891011
  1. <?php
  2. $installedVersion=OCP\Config::getAppValue('files_trashbin', 'installed_version');
  3. if (version_compare($installedVersion, '0.4', '<')) {
  4. //size of the trash bin could be incorrect, remove it for all users to
  5. //enforce a recalculation during next usage.
  6. $query = \OC_DB::prepare('DELETE FROM `*PREFIX*files_trashsize`');
  7. $result = $query->execute();
  8. }