aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_versions/appinfo
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-06 13:55:26 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2014-06-02 18:55:13 +0200
commit7ad0fee0b56d9ab678cbb52128d427ebd641b05e (patch)
treeb8b99b661cbeb7772f927d070eb6e18cd5408a92 /apps/files_versions/appinfo
parent390d8e53b4349af2265085f25c2784c620fbf4ae (diff)
downloadnextcloud-server-7ad0fee0b56d9ab678cbb52128d427ebd641b05e.tar.gz
nextcloud-server-7ad0fee0b56d9ab678cbb52128d427ebd641b05e.zip
let file cache handle the versions size
Diffstat (limited to 'apps/files_versions/appinfo')
-rw-r--r--apps/files_versions/appinfo/database.xml35
-rw-r--r--apps/files_versions/appinfo/update.php13
-rw-r--r--apps/files_versions/appinfo/version2
3 files changed, 4 insertions, 46 deletions
diff --git a/apps/files_versions/appinfo/database.xml b/apps/files_versions/appinfo/database.xml
deleted file mode 100644
index d3854776980..00000000000
--- a/apps/files_versions/appinfo/database.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-<database>
-
- <name>*dbname*</name>
- <create>true</create>
- <overwrite>false</overwrite>
-
- <charset>utf8</charset>
-
- <table>
-
- <name>*dbprefix*files_versions</name>
-
- <declaration>
-
- <field>
- <name>user</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>64</length>
- </field>
- <field>
- <name>size</name>
- <type>text</type>
- <default></default>
- <notnull>true</notnull>
- <length>50</length>
- </field>
-
- </declaration>
-
- </table>
-
-</database>
diff --git a/apps/files_versions/appinfo/update.php b/apps/files_versions/appinfo/update.php
index 52a4850758a..ee6d3c14c9a 100644
--- a/apps/files_versions/appinfo/update.php
+++ b/apps/files_versions/appinfo/update.php
@@ -2,14 +2,7 @@
$installedVersion=OCP\Config::getAppValue('files_versions', 'installed_version');
// move versions to new directory
-if (version_compare($installedVersion, '1.0.2', '<')) {
- $users = \OCP\User::getUsers();
- $datadir = \OCP\Config::getSystemValue('datadirectory').'/';
- foreach ($users as $user) {
- $oldPath = $datadir.$user.'/versions';
- $newPath = $datadir.$user.'/files_versions';
- if(is_dir($oldPath)) {
- rename($oldPath, $newPath);
- }
- }
+if (version_compare($installedVersion, '1.0.4', '<')) {
+ $query = \OCP\DB::prepare("DROP TABLE `*PREFIX*files_versions`");
+ $query->execute(array());
}
diff --git a/apps/files_versions/appinfo/version b/apps/files_versions/appinfo/version
index e4c0d46e55f..ee90284c27f 100644
--- a/apps/files_versions/appinfo/version
+++ b/apps/files_versions/appinfo/version
@@ -1 +1 @@
-1.0.3 \ No newline at end of file
+1.0.4