aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-08-17 20:52:18 -0700
committerFriendika <info@friendika.com>2011-08-17 20:52:18 -0700
commitc30f523c6200ef84c506940b5f86b49ff2c7cf6e (patch)
tree2f9787a5040cd679bc212094748eb02ab41239bb /update.php
parentff723caae3208b6f6da555d2a5b8375b4d74fd73 (diff)
downloadvolse-hubzilla-c30f523c6200ef84c506940b5f86b49ff2c7cf6e.tar.gz
volse-hubzilla-c30f523c6200ef84c506940b5f86b49ff2c7cf6e.tar.bz2
volse-hubzilla-c30f523c6200ef84c506940b5f86b49ff2c7cf6e.zip
more d* infrastructure for relaying signed messages and storing non-connected people details
Diffstat (limited to 'update.php')
-rw-r--r--update.php27
1 files changed, 26 insertions, 1 deletions
diff --git a/update.php b/update.php
index 256ab48e8..3586aa5fd 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1079 );
+define( 'UPDATE_VERSION' , 1080 );
/**
*
@@ -646,3 +646,28 @@ function update_1077() {
function update_1078() {
q("ALTER TABLE `item` ADD `guid` CHAR( 64 ) NOT NULL AFTER `id` , ADD INDEX ( `guid` ) ");
}
+
+function update_1079() {
+ q("CREATE TABLE IF NOT EXISTS `sign` (
+ `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+ `iid` INT UNSIGNED NOT NULL ,
+ `signed_text` MEDIUMTEXT NOT NULL ,
+ `signature` TEXT NOT NULL ,
+ `signer` CHAR( 255 ) NOT NULL ,
+ INDEX ( `iid` )
+ ) ENGINE = MYISAM ");
+
+ q("ALTER TABLE `fcontact` ADD `nick` CHAR( 255 ) NOT NULL ,
+ ADD `addr` CHAR( 255 ) NOT NULL ,
+ ADD `notify` CHAR( 255 ) NOT NULL ,
+ ADD `poll` CHAR( 255 ) NOT NULL ,
+ ADD `confirm` CHAR( 255 ) NOT NULL ,
+ ADD `priority` TINYINT( 1 ) NOT NULL ,
+ ADD `network` CHAR( 32 ) NOT NULL ,
+ ADD `alias` CHAR( 255 ) NOT NULL ,
+ ADD `pubkey` TEXT NOT NULL ,
+ ADD INDEX ( `addr` ) ,
+ ADD INDEX ( `network` ) ");
+
+}
+