aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-08-23 07:59:12 +0200
committermarijus <mario@mariovavti.com>2014-08-23 07:59:12 +0200
commit8d382a9394a1b3b32fcd40553add9520e076ab68 (patch)
tree409292976fe0b3ea818a3f807835883056a09199 /install/update.php
parentb0d52943e85bf819d4ddf91127ca25ec7a32c289 (diff)
parent9196c9eef091e7f4a41fbc9452521d6ca2de55a3 (diff)
downloadvolse-hubzilla-8d382a9394a1b3b32fcd40553add9520e076ab68.tar.gz
volse-hubzilla-8d382a9394a1b3b32fcd40553add9520e076ab68.tar.bz2
volse-hubzilla-8d382a9394a1b3b32fcd40553add9520e076ab68.zip
Merge branch 'master' of https://github.com/friendica/red
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php14
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;
+}
+
+