]> git.mxchange.org Git - friendica.git/blobdiff - update.php
BBCode: When converting to HTML for the connectors, then videos are now converted...
[friendica.git] / update.php
index 40f22e6aa61e9835c3385fa8b0a8e5951d3a24cd..d48be0a7a5d99a0ec7dc399a73451a014606626b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1163 );
+define( 'UPDATE_VERSION' , 1164 );
 
 /**
  *
@@ -1441,3 +1441,17 @@ function update_1162() {
        require_once('include/tags.php');
        update_items();
 }
+
+function update_1163() {
+       set_config('system', 'maintenance', 1);
+
+       $r = q("ALTER TABLE `item` ADD `network` char(32) NOT NULL,
+               ADD INDEX (`network`)");
+
+       set_config('system', 'maintenance', 0);
+
+       if(!$r)
+               return UPDATE_FAILED;
+
+       return UPDATE_SUCCESS;
+}