]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Added description
[friendica.git] / update.php
index c28590a7373d0ebed5e43caf607dae7d74b0189e..016fe8a2ec9f658cd16fb7060ab994fc810d1322 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -55,6 +55,7 @@ use Friendica\Model\Notification;
 use Friendica\Model\Photo;
 use Friendica\Model\Post;
 use Friendica\Model\Profile;
+use Friendica\Model\User;
 use Friendica\Security\PermissionSet\Repository\PermissionSet;
 use Friendica\Worker\Delivery;
 
@@ -1087,3 +1088,12 @@ function update_1446()
 
        return Update::SUCCESS;
 }
+
+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;
+}