aboutsummaryrefslogtreecommitdiffstats
path: root/install/update.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-04-25 21:52:24 -0700
committerzotlabs <mike@macgirvin.com>2017-04-25 21:52:24 -0700
commit7d5ee81628a08dd560f7fdaa5b4d5a3f5ce3fb95 (patch)
tree428e349ecaa384a74f9aabf0408f68d3e7eed173 /install/update.php
parentf36e384ed7bc76b970862905e87efe88872d5f5d (diff)
downloadvolse-hubzilla-7d5ee81628a08dd560f7fdaa5b4d5a3f5ce3fb95.tar.gz
volse-hubzilla-7d5ee81628a08dd560f7fdaa5b4d5a3f5ce3fb95.tar.bz2
volse-hubzilla-7d5ee81628a08dd560f7fdaa5b4d5a3f5ce3fb95.zip
database support for client side e2ee for private mail
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 b37af9cef..84f1a799c 100644
--- a/install/update.php
+++ b/install/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1189 );
+define( 'UPDATE_VERSION' , 1190 );
/**
*
@@ -2521,3 +2521,14 @@ function update_r1188() {
}
+function update_r1189() {
+
+ $r1 = q("alter table mail add mail_mimetype char(64) not null default 'text/bbcode' ");
+ $r2 = q("alter table mail add mail_raw int(4) not null default '0' ");
+
+ if($r1 && $r2)
+ return UPDATE_SUCCESS;
+ return UPDATE_FAILED;
+
+}
+