]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Mentions are now displayed much faster. Attention: The related database update can...
[friendica.git] / update.php
index 7308a6acf76907b4a748d25ac4da701215d4cd30..04ae451a1ce34e57711ac6ea465e9deb8b55b38c 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1158 );
+define( 'UPDATE_VERSION' , 1159 );
 
 /**
  *
@@ -1382,3 +1382,9 @@ function update_1157() {
        if(!$r) return UPDATE_FAILED;
        return UPDATE_SUCCESS;
 }
+function update_1158() {
+       $r = q("ALTER TABLE `item` ADD `mention` TINYINT(1) NOT NULL DEFAULT '0', ADD INDEX (`mention`)");
+// KEY `mention` (`mention`)
+       if(!$r) return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}