aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorMorris Jobke <morris.jobke@gmail.com>2013-10-31 11:10:28 -0700
committerMorris Jobke <morris.jobke@gmail.com>2013-10-31 11:10:28 -0700
commitfad2149e3f7ec89874a759f7c31c93dd3d1e8083 (patch)
tree03844a28409fe4712d7e97f8c845f09d782163e0 /lib
parentae469b67a0d8e0fe25763fa6492c3a83d9b4e38c (diff)
parent310c8400df99ab073a1dbd03b78f57bab3de8e98 (diff)
downloadnextcloud-server-fad2149e3f7ec89874a759f7c31c93dd3d1e8083.tar.gz
nextcloud-server-fad2149e3f7ec89874a759f7c31c93dd3d1e8083.zip
Merge pull request #5551 from owncloud/fix-5202-master
When updating an appstore app, execute a database update
Diffstat (limited to 'lib')
-rw-r--r--lib/private/installer.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/private/installer.php b/lib/private/installer.php
index a7ca7269716..d7b207c6aad 100644
--- a/lib/private/installer.php
+++ b/lib/private/installer.php
@@ -181,7 +181,11 @@ class OC_Installer{
//install the database
if(is_file($basedir.'/appinfo/database.xml')) {
- OC_DB::createDbFromStructure($basedir.'/appinfo/database.xml');
+ if (OC_Appconfig::getValue($info['id'], 'installed_version') === null) {
+ OC_DB::createDbFromStructure($basedir.'/appinfo/database.xml');
+ } else {
+ OC_DB::updateDbFromStructure($basedir.'/appinfo/database.xml');
+ }
}
//run appinfo/install.php