aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorgit-marijus <mario@mariovavti.com>2017-04-13 12:08:17 +0200
committerGitHub <noreply@github.com>2017-04-13 12:08:17 +0200
commit2aa69257a4a56b42004e6c758ded644e85071ad9 (patch)
tree107e61f6b8b665f51c8826151b675a34e7f4e4cd /install/update.php
parent7b173a75e47cfdf9f46b7d635df84b2be286b0e6 (diff)
parent9d425b472722e7ca33e93e09bb330763bed2d257 (diff)
downloadvolse-hubzilla-2aa69257a4a56b42004e6c758ded644e85071ad9.tar.gz
volse-hubzilla-2aa69257a4a56b42004e6c758ded644e85071ad9.tar.bz2
volse-hubzilla-2aa69257a4a56b42004e6c758ded644e85071ad9.zip
Merge pull request #715 from zotlabs/cpp
backend infrastructure for 'channel protection password'; which will …
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;
+
+}
+