diff options
author | Morris Jobke <morris.jobke@gmail.com> | 2013-10-31 22:10:28 +0400 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-31 22:10:28 +0400 |
commit | fad2149e3f7ec89874a759f7c31c93dd3d1e8083 (patch) | |
tree | 03844a28409fe4712d7e97f8c845f09d782163e0 /lib/private/installer.php | |
parent | ae469b67a0d8e0fe25763fa6492c3a83d9b4e38c (diff) | |
parent | 310c8400df99ab073a1dbd03b78f57bab3de8e98 (diff) |
Merge pull request #5551 from owncloud/fix-5202-master
When updating an appstore app, execute a database update
Diffstat (limited to 'lib/private/installer.php')
-rw-r--r-- | lib/private/installer.php | 6 |
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 |