aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-19 01:01:51 -0700
committerfriendica <info@friendica.com>2013-09-19 01:01:51 -0700
commit63fc92b9e5d75f0dda0aecaaa0e1feb56d2b9744 (patch)
tree415659dab562b71736a628be8beb7103bc543886 /install/update.php
parent14f6bf06e7d0dd7a851715bb081e2f2a55d79c2a (diff)
downloadvolse-hubzilla-63fc92b9e5d75f0dda0aecaaa0e1feb56d2b9744.tar.gz
volse-hubzilla-63fc92b9e5d75f0dda0aecaaa0e1feb56d2b9744.tar.bz2
volse-hubzilla-63fc92b9e5d75f0dda0aecaaa0e1feb56d2b9744.zip
sync item_search with yesterday's network fix for collections. Add ud_addr to update table to store the target address since it's possible the mirroring directory won't yet have an xchan or hubloc they can link the ud_hash to and therefore mayn't know how to contact them.
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php10
1 files changed, 9 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index c135cc586..ccbdd79fd 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1071 );
+define( 'UPDATE_VERSION' , 1072 );
/**
*
@@ -805,3 +805,11 @@ ADD INDEX ( `ud_flags` )");
return UPDATE_FAILED;
}
+function update_r1071() {
+ $r = q("ALTER TABLE `updates` ADD `ud_addr` CHAR( 255 ) NOT NULL DEFAULT '',
+ADD INDEX ( `ud_addr` ) ");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+