summaryrefslogtreecommitdiffstats
path: root/version.php
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-08-30 16:21:55 +0200
committerVincent Petry <pvince81@owncloud.com>2015-08-30 18:04:18 +0200
commit2b08659f7d18d458339bcd89687469d8926f4941 (patch)
treead1ddb3aac8d8d3bb5eff26d65ea4a2eab35dfc1 /version.php
parent045f8cc97101521cafd664faf7b8f24ea9e88451 (diff)
downloadnextcloud-server-2b08659f7d18d458339bcd89687469d8926f4941.tar.gz
nextcloud-server-2b08659f7d18d458339bcd89687469d8926f4941.zip
Restrict upgrades to explicit allowed version
version.php now contains the previous ownCloud version from which upgrades are allowed. Any other upgrades will show a message that the upgrade/downgrade is not supported.
Diffstat (limited to 'version.php')
-rw-r--r--version.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/version.php b/version.php
index a115f4b26be..a6b49d9dc74 100644
--- a/version.php
+++ b/version.php
@@ -2,6 +2,7 @@
/**
* @author Frank Karlitschek <frank@owncloud.org>
* @author Lukas Reschke <lukas@owncloud.com>
+ * @author Vincent Petry <pvince81@owncloud.com>
*
* @copyright Copyright (c) 2015, ownCloud, Inc.
* @license AGPL-3.0
@@ -22,14 +23,16 @@
// We only can count up. The 4. digit is only for the internal patchlevel to trigger DB upgrades
// between betas, final and RCs. This is _not_ the public version number. Reset minor/patchlevel
// when updating major/minor version number.
-$OC_Version=array(8, 2, 0, 4);
+$OC_Version = [8, 2, 0, 4];
// The human readable string
-$OC_VersionString='8.2 pre alpha';
+$OC_VersionString = '8.2 pre alpha';
+
+$OC_VersionCanBeUpgradedFrom = [8, 1];
// The ownCloud channel
-$OC_Channel='git';
+$OC_Channel = 'git';
// The build number
-$OC_Build='';
+$OC_Build = '';