Skip to content
Snippets Groups Projects
Commit 1888ac0d authored by Georg Ehrke's avatar Georg Ehrke
Browse files

add the possibility to add an preupdate.php

parent c7d64811
Branches
No related tags found
No related merge requests found
......@@ -685,6 +685,10 @@ class OC_App{
* @param string $appid
*/
public static function updateApp($appid) {
if(file_exists(self::getAppPath($appid).'/appinfo/preupdate.php')) {
self::loadApp($appid);
include self::getAppPath($appid).'/appinfo/preupdate.php';
}
if(file_exists(self::getAppPath($appid).'/appinfo/database.xml')) {
OC_DB::updateDbFromStructure(self::getAppPath($appid).'/appinfo/database.xml');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment