]> git.mxchange.org Git - friendica.git/blobdiff - update.php
proc_run was replaced
[friendica.git] / update.php
index d89e9ca06dc4e7369e65d8f05ae30d5779990a27..db67d54600c331c56d7d2785d3f058747a9ac1c8 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
-define('UPDATE_VERSION' , 1232);
+define('UPDATE_VERSION' , 1235);
+
+use Friendica\Core\Worker;
 
 /**
  *
@@ -1596,7 +1598,7 @@ function update_1169() {
        if (!$r)
                return UPDATE_FAILED;
 
-       proc_run(PRIORITY_LOW, "include/threadupdate.php");
+       Worker::add(PRIORITY_LOW, "threadupdate");
 
        return UPDATE_SUCCESS;
 }
@@ -1637,7 +1639,7 @@ function update_1178() {
                set_config('system','community_page_style', CP_NO_COMMUNITY_PAGE);
 
        // Update the central item storage with uid=0
-       proc_run(PRIORITY_LOW, "include/threadupdate.php");
+       Worker::add(PRIORITY_LOW, "threadupdate");
 
        return UPDATE_SUCCESS;
 }
@@ -1645,7 +1647,7 @@ function update_1178() {
 function update_1180() {
 
        // Fill the new fields in the term table.
-       proc_run(PRIORITY_LOW, "include/tagupdate.php");
+       Worker::add(PRIORITY_LOW, "tagupdate");
 
        return UPDATE_SUCCESS;
 }
@@ -1729,8 +1731,3 @@ function update_1202() {
        $r = q("UPDATE `user` SET `account-type` = %d WHERE `page-flags` IN (%d, %d)",
                dbesc(ACCOUNT_TYPE_COMMUNITY), dbesc(PAGE_COMMUNITY), dbesc(PAGE_PRVGROUP));
 }
-
-function update_1231() {
-       // For this special case we have to use the old update routine
-       $r = q("ALTER TABLE `workerqueue` ADD `done` tinyint(1) NOT NULL DEFAULT 0");
-}