]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge pull request #2901 from tobiasd/20161110-helptxt
[friendica.git] / update.php
index 80ce96c382d183ffefc73a9ba7ccf9e6b33cbcea..fa03ddd1ac5057decff72f64dc26b893b17d1ba1 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define('UPDATE_VERSION' , 1201);
+define('UPDATE_VERSION' , 1208);
 
 /**
  *
@@ -1677,7 +1677,7 @@ function update_1190() {
                        $idx = array_search($plugin, $plugins_arr);
                        if ($idx !== false){
                                unset($plugins_arr[$idx]);
-                               //delete forumlist manually from addon and hook table 
+                               //delete forumlist manually from addon and hook table
                                // since uninstall_plugin() don't work here
                                q("DELETE FROM `addon` WHERE `name` = 'forumlist' ");
                                q("DELETE FROM `hook` WHERE `file` = 'addon/forumlist/forumlist.php' ");
@@ -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));
+}