summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2014-05-14 00:28:05 +0200
committerLukas Reschke <lukas@statuscode.ch>2014-05-14 00:28:05 +0200
commit166f2af5d871d3bfd86021eec3bf8d0078073f5b (patch)
treed3361f0519e588aeed2ad07f7fd071cd7184df78
parent5fb94bf76f199a4dc713fe6e37e683d1d908e972 (diff)
parent2d1296bb03816663ba2b70b93b4d353b8aa6b89d (diff)
downloadnextcloud-server-166f2af5d871d3bfd86021eec3bf8d0078073f5b.tar.gz
nextcloud-server-166f2af5d871d3bfd86021eec3bf8d0078073f5b.zip
Merge pull request #8582 from owncloud/remove-outdated-update-sc
We do not support updates from 4.5 > 7.0 or even 3.0 > 7.0
-rw-r--r--apps/files/appinfo/update.php46
1 files changed, 0 insertions, 46 deletions
diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php
deleted file mode 100644
index f920f842166..00000000000
--- a/apps/files/appinfo/update.php
+++ /dev/null
@@ -1,46 +0,0 @@
-<?php
-
-// fix webdav properties,add namespace in front of the property, update for OC4.5
-$installedVersion=OCP\Config::getAppValue('files', 'installed_version');
-if (version_compare($installedVersion, '1.1.6', '<')) {
- $concat = OC_DB::getConnection()->getDatabasePlatform()->
- getConcatExpression( '\'{DAV:}\'', '`propertyname`' );
- $query = OC_DB::prepare('
- UPDATE `*PREFIX*properties`
- SET `propertyname` = ' . $concat . '
- WHERE `propertyname` NOT LIKE \'{%\'
- ');
- $query->execute();
-}
-
-//update from OC 3
-
-//try to remove remaining files.
-//Give a warning if not possible
-
-$filesToRemove = array(
- 'ajax',
- 'appinfo',
- 'css',
- 'js',
- 'l10n',
- 'templates',
- 'admin.php',
- 'download.php',
- 'index.php',
- 'settings.php'
-);
-
-foreach($filesToRemove as $file) {
- $filepath = OC::$SERVERROOT . '/files/' . $file;
- if(!file_exists($filepath)) {
- continue;
- }
- $success = OCP\Files::rmdirr($filepath);
- if($success === false) {
- //probably not sufficient privileges, give up and give a message.
- OCP\Util::writeLog('files', 'Could not clean /files/ directory.'
- .' Please remove everything except webdav.php from ' . OC::$SERVERROOT . '/files/', OCP\Util::ERROR);
- break;
- }
-}