diff options
author | friendica <info@friendica.com> | 2013-08-01 16:55:37 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-08-01 16:55:37 -0700 |
commit | 6197f945adb62da9d1aeb2a8f4058ed4651fa3b6 (patch) | |
tree | 542d736320e257f2585d53f4467ac07506f482de /install/update.php | |
parent | 85b6be5b00a4a012bf9a2db8d72e70a225fac8a3 (diff) | |
download | volse-hubzilla-6197f945adb62da9d1aeb2a8f4058ed4651fa3b6.tar.gz volse-hubzilla-6197f945adb62da9d1aeb2a8f4058ed4651fa3b6.tar.bz2 volse-hubzilla-6197f945adb62da9d1aeb2a8f4058ed4651fa3b6.zip |
add "xchan_instance_url" for communicating with services that lack nomadic identity. This will be set to the url of the Red site that they are connected with. Only the nomadic identity clone at that site can communicate directly with them. Other instances will need to relay through that site - and if it goes down, that connection is stuffed.
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index f357dbba2..f953e3f09 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1056 ); +define( 'UPDATE_VERSION' , 1057 ); /** * @@ -656,3 +656,10 @@ function update_r1055() { return UPDATE_FAILED; } +function update_r1056() { + $r = q("ALTER TABLE `xchan` ADD `xchan_instance_url` CHAR( 255 ) NOT NULL DEFAULT '' AFTER `xchan_network` , +ADD INDEX ( `xchan_instance_url` ) "); + if($r) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} |