diff options
author | Vincent Petry <pvince81@owncloud.com> | 2015-08-30 16:21:55 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-08-30 18:04:18 +0200 |
commit | 2b08659f7d18d458339bcd89687469d8926f4941 (patch) | |
tree | ad1ddb3aac8d8d3bb5eff26d65ea4a2eab35dfc1 /version.php | |
parent | 045f8cc97101521cafd664faf7b8f24ea9e88451 (diff) | |
download | nextcloud-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.php | 11 |
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 = ''; |