X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=update.php;h=49287cd0b2a86205a9c944d4f36047fb4b0692bc;hb=254c32ac91cdfd654e64cdc8ae5aef44ee639212;hp=842fefca88f9f4bea7d24dd8e1bedfa71a40fccc;hpb=2eb03495826b456c00daad72af0b4f27a621d4e5;p=friendica.git diff --git a/update.php b/update.php index 842fefca88..49287cd0b2 100644 --- a/update.php +++ b/update.php @@ -981,3 +981,28 @@ function update_1429() return Update::SUCCESS; } + +function update_1434() +{ + $name = DI::config()->get('storage', 'name'); + + // in case of an empty config, set "Database" as default storage backend + if (empty($name)) { + DI::config()->set('storage', 'name', Storage\Database::getName()); + } + + // In case of a Using deprecated storage class value, set the right name for it + if (stristr($name, 'Friendica\Model\Storage\\')) { + DI::config()->set('storage', 'name', substr($name, 24)); + } + + return Update::SUCCESS; +} + +function update_1435() +{ + $contacts = DBA::select('contact', [], ["`uid` != ?", 0]); + while ($contact = DBA::fetch($contacts)) { + Contact\User::insertForContactArray($contact); + } +} \ No newline at end of file