diff options
author | friendica <info@friendica.com> | 2014-08-22 21:37:08 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2014-08-22 21:37:08 -0700 |
commit | 9196c9eef091e7f4a41fbc9452521d6ca2de55a3 (patch) | |
tree | 409292976fe0b3ea818a3f807835883056a09199 /install/update.php | |
parent | 255ab8e9c9b86c7d38e03eb0d4913a823086366d (diff) | |
download | volse-hubzilla-9196c9eef091e7f4a41fbc9452521d6ca2de55a3.tar.gz volse-hubzilla-9196c9eef091e7f4a41fbc9452521d6ca2de55a3.tar.bz2 volse-hubzilla-9196c9eef091e7f4a41fbc9452521d6ca2de55a3.zip |
We really can't do this without a hubloc. I was hoping we could, but notifier is setup to take hublocs, not xchans.
Diffstat (limited to 'install/update.php')
-rw-r--r-- | install/update.php | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php index f7d6441dc..9e184428e 100644 --- a/install/update.php +++ b/install/update.php @@ -1,6 +1,6 @@ <?php -define( 'UPDATE_VERSION' , 1123 ); +define( 'UPDATE_VERSION' , 1124 ); /** * @@ -1377,3 +1377,15 @@ function update_r1122() { return UPDATE_SUCCESS; return UPDATE_FAILED; } + +function update_r1123() { + $r1 = q("ALTER TABLE `hubloc` ADD `hubloc_network` CHAR( 32 ) NOT NULL DEFAULT '' AFTER `hubloc_addr` , +ADD INDEX ( `hubloc_network` )"); + $r2 = q("update hubloc set hubloc_network = 'zot' where true"); + + if($r1 && $r2) + return UPDATE_SUCCESS; + return UPDATE_FAILED; +} + + |