diff options
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 |