]> git.mxchange.org Git - friendica.git/blobdiff - update.php
When we have the field, we should use it :)
[friendica.git] / update.php
index bd37e382e1f10fd5d5e725b37f389c387e1cd44e..863025ccc706113b9695a2e30b2e6cbba860c64e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define('UPDATE_VERSION' , 1203);
+define('UPDATE_VERSION' , 1204);
 
 /**
  *
@@ -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));
+}