aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-12 17:32:28 -0700
committerzotlabs <mike@macgirvin.com>2017-04-12 18:46:15 -0700
commit1c32564536cbfa12bd21a1c8161921b13d7dcc66 (patch)
treedd861e977bdf5883f952699e84e2b74b9d79f7cb /install/update.php
parent63dd6ad01a173d640e5c49dede1246dba840aa74 (diff)
downloadvolse-hubzilla-1c32564536cbfa12bd21a1c8161921b13d7dcc66.tar.gz
volse-hubzilla-1c32564536cbfa12bd21a1c8161921b13d7dcc66.tar.bz2
volse-hubzilla-1c32564536cbfa12bd21a1c8161921b13d7dcc66.zip
backend infrastructure for 'channel protection password'; which will be used to optionally encrypt export files and resolve channel/identity ownership/hijacking disputes
Diffstat (limited to 'install/update.php')
-rw-r--r--install/update.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/install/update.php b/install/update.php
index dd3a42c78..b37af9cef 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1188 );
+define( 'UPDATE_VERSION' , 1189 );
/**
*
@@ -2510,3 +2510,14 @@ function update_r1187() {
}
+function update_r1188() {
+
+ $r1 = q("alter table channel add channel_password varchar(255) not null ");
+ $r2 = q("alter table channel add channel_salt varchar(255) not null ");
+
+ if($r1 && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+
+}
+