]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Merge branch 'master' of https://github.com/friendica/friendica into threaded_items
[friendica.git] / update.php
index 19e6cf3bdf78c06eae128ee1f383eb4f902d3492..c41acf6fbcf5e8d8c9d86209dae9e4f02f53ae3e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1154 );
+define( 'UPDATE_VERSION' , 1155 );
 
 /**
  *
@@ -1343,3 +1343,10 @@ function update_1153() {
        if(!$r) return UPDATE_FAILED;
        return UPDATE_SUCCESS;
 }
+
+function update_1154() {
+       $r = q("UPDATE `item` SET `thr-parent`=`parent-uri` WHERE `id`!=`parent` AND `thr-parent`=''");
+       
+       if(!$r) return UPDATE_FAILED;
+       return UPDATE_SUCCESS;
+}