summaryrefslogtreecommitdiffstats
path: root/lib/base.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2012-01-16 01:13:54 +0100
committerRobin Appelman <icewind@owncloud.com>2012-01-16 01:15:43 +0100
commit907dd4d24da80fa4f4ad5d6d469cd11d7c215f02 (patch)
tree19dfba573847083e1e8e282dcd43c6537b38ad3c /lib/base.php
parentda33229dab7aefee6f2de0ac6f128feaf767388b (diff)
downloadnextcloud-server-907dd4d24da80fa4f4ad5d6d469cd11d7c215f02.tar.gz
nextcloud-server-907dd4d24da80fa4f4ad5d6d469cd11d7c215f02.zip
some aditional feedback during database upgrade
Diffstat (limited to 'lib/base.php')
-rw-r--r--lib/base.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/base.php b/lib/base.php
index 9531f7ed74f..ab7cb2990ed 100644
--- a/lib/base.php
+++ b/lib/base.php
@@ -156,7 +156,11 @@ class OC{
$installedVersion=OC_Config::getValue('version','0.0.0');
$currentVersion=implode('.',OC_Util::getVersion());
if (version_compare($currentVersion, $installedVersion, '>')) {
- OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');
+ $result=OC_DB::updateDbFromStructure(OC::$SERVERROOT.'/db_structure.xml');
+ if(!$result){
+ echo 'Error while upgrading the database';
+ die();
+ }
OC_Config::setValue('version',implode('.',OC_Util::getVersion()));
}