nextcloud/apps/files_versions/appinfo/update.php

9 lines
275 B
PHP

<?php
$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());
}