aboutsummaryrefslogtreecommitdiffstats
path: root/install
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2013-09-10 17:12:48 -0700
committerfriendica <info@friendica.com>2013-09-10 17:12:48 -0700
commit7ada499ca9a1424a59204d87edb5856f88a79b59 (patch)
treeaf1b87755abe9c5276a07869ee5a7d5729d71fd7 /install
parent72f562c190630e69fa5a223855cd6f3a3bc66e49 (diff)
parent5aaf8b8e9940d99befd00619238cd20c3894e5a9 (diff)
downloadvolse-hubzilla-7ada499ca9a1424a59204d87edb5856f88a79b59.tar.gz
volse-hubzilla-7ada499ca9a1424a59204d87edb5856f88a79b59.tar.bz2
volse-hubzilla-7ada499ca9a1424a59204d87edb5856f88a79b59.zip
Merge https://github.com/friendica/red into zpull
Diffstat (limited to 'install')
-rw-r--r--install/database.sql2
-rw-r--r--install/update.php9
2 files changed, 10 insertions, 1 deletions
diff --git a/install/database.sql b/install/database.sql
index 9b1b6cad2..9ecbad5a6 100644
--- a/install/database.sql
+++ b/install/database.sql
@@ -367,6 +367,7 @@ CREATE TABLE IF NOT EXISTS `hubloc` (
`hubloc_hash` char(255) NOT NULL,
`hubloc_addr` char(255) NOT NULL DEFAULT '',
`hubloc_flags` int(10) unsigned NOT NULL DEFAULT '0',
+ `hubloc_status` int(10) unsigned NOT NULL DEFAULT '0',
`hubloc_url` char(255) NOT NULL DEFAULT '',
`hubloc_url_sig` text NOT NULL,
`hubloc_host` char(255) NOT NULL DEFAULT '',
@@ -379,6 +380,7 @@ CREATE TABLE IF NOT EXISTS `hubloc` (
KEY `hubloc_url` (`hubloc_url`),
KEY `hubloc_guid` (`hubloc_guid`),
KEY `hubloc_flags` (`hubloc_flags`),
+ KEY `hubloc_status` (`hubloc_status`),
KEY `hubloc_connect` (`hubloc_connect`),
KEY `hubloc_host` (`hubloc_host`),
KEY `hubloc_addr` (`hubloc_addr`),
diff --git a/install/update.php b/install/update.php
index 1b6a2218e..24aed374d 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1068 );
+define( 'UPDATE_VERSION' , 1069 );
/**
*
@@ -782,3 +782,10 @@ function update_r1067() {
return UPDATE_FAILED;
}
+function update_r1068(){
+ $r = q("ALTER TABLE `hubloc` ADD `hubloc_status` INT UNSIGNED NOT NULL DEFAULT '0' AFTER `hubloc_flags` , ADD INDEX ( `hubloc_status` )");
+ if($r)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+}
+