mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 08:44:07 -04:00
Merge pull request #5551 from owncloud/fix-5202-master
When updating an appstore app, execute a database update
This commit is contained in:
commit
fad2149e3f
1 changed files with 5 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue