X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=016fe8a2ec9f658cd16fb7060ab994fc810d1322;hb=00f39cd3081396a196889173e1754ea0b8a9740d;hp=82351a7b2a732a259ae9daa35d03819bf2cf4e57;hpb=6ca5668ac1508ca5170949898e186d923a98d973;p=friendica.git diff --git a/update.php b/update.php index 82351a7b2a..016fe8a2ec 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver')); + if ( + $distributed_cache_driver_source === \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC + && $cache_driver_source > \Friendica\Core\Config\ValueObject\Cache::SOURCE_STATIC + ) { + DI::config()->set('system', 'distributed_cache_driver', DI::config()->get('system', 'cache_driver')); } return Update::SUCCESS; -} \ No newline at end of file +} + +function update_1451() +{ + DBA::update('user', ['account-type' => User::ACCOUNT_TYPE_COMMUNITY], ['page-flags' => [User::PAGE_FLAGS_COMMUNITY, User::PAGE_FLAGS_PRVGROUP]]); + DBA::update('contact', ['contact-type' => Contact::TYPE_COMMUNITY], ["`forum` OR `prv`"]); + DBA::update('contact', ['manually-approve' => true], ['prv' => true]); + + return Update::SUCCESS; +}