]> git.mxchange.org Git - friendica.git/blobdiff - update.php
When we have the field, we should use it :)
[friendica.git] / update.php
index 197e78de5c44f88f6262fd5e944f12a5f62c6aea..863025ccc706113b9695a2e30b2e6cbba860c64e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1192 );
+define('UPDATE_VERSION' , 1204);
 
 /**
  *
@@ -1595,7 +1595,7 @@ function update_1169() {
        if (!$r)
                return UPDATE_FAILED;
 
-       proc_run('php',"include/threadupdate.php");
+       proc_run(PRIORITY_LOW, "include/threadupdate.php");
 
        return UPDATE_SUCCESS;
 }
@@ -1636,7 +1636,7 @@ function update_1178() {
                set_config('system','community_page_style', CP_NO_COMMUNITY_PAGE);
 
        // Update the central item storage with uid=0
-       proc_run('php',"include/threadupdate.php");
+       proc_run(PRIORITY_LOW, "include/threadupdate.php");
 
        return UPDATE_SUCCESS;
 }
@@ -1644,7 +1644,7 @@ function update_1178() {
 function update_1180() {
 
        // Fill the new fields in the term table.
-       proc_run('php',"include/tagupdate.php");
+       proc_run(PRIORITY_LOW, "include/tagupdate.php");
 
        return UPDATE_SUCCESS;
 }
@@ -1723,3 +1723,8 @@ function update_1190() {
        return UPDATE_SUCCESS;
 
 }
+
+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));
+}