]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #10179 from nupplaphil/fix/transifex_script
[friendica.git] / update.php
index a1343255bcb180aa5ebe1c6f098ea0ee497a5582..819085f7ff2f5c6f1342d4f36c3a9e851997b039 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -883,6 +883,8 @@ function update_1404()
                                continue 2;
                }
                DBA::update('workerqueue', ['parameter' => json_encode($parameters)], ['id' => $task['id']]);
+
+               return Update::SUCCESS;
        }
 }
 
@@ -900,4 +902,13 @@ function update_1407()
        if (!DBA::e("UPDATE `post-thread-user` SET `causer-id` = NULL WHERE `causer-id` = 0")) {
                return Update::FAILED;
        }
+
+       return Update::SUCCESS;
+}
+
+function update_1413()
+{
+       if (!DBA::e("UPDATE `post-user` SET `post-reason` = `post-type` WHERE `post-type` >= 64 and `post-type` <= 75")) {
+               return Update::FAILED;
+       }
 }