]> git.mxchange.org Git - friendica.git/blobdiff - update.php
plugin: orphaned hooks weren't deleted.
[friendica.git] / update.php
index 89b55cdb9c0770adeb33ff341f8959a7351ec25e..6dd58757b9fd6830c3f843e4108ac7bbe0a60155 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1159 );
+define( 'UPDATE_VERSION' , 1162 );
 
 /**
  *
@@ -1430,3 +1430,12 @@ function update_1160() {
 
        return UPDATE_SUCCESS;
 }
+
+function update_1161() {
+       $r = q("ALTER TABLE `pconfig` ADD INDEX (`cat`)");
+
+       if(!$r)
+               return UPDATE_FAILED;
+
+       return UPDATE_SUCCESS;
+}