aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-08-22 13:56:08 +0200
committerfabrixxm <fabrix.xm@gmail.com>2011-08-22 13:56:08 +0200
commitd8bd4fbb3e38bf0ff9c7b61dba58e20c0d097d75 (patch)
treedbdc1dbffe5c56dcff18669e957f679b5ae37bb3 /update.php
parentafdc639f17f0f5e12f291b512ccc12b3df6b2acf (diff)
parent564ade0685470158ac487d9a9f18a21079c729bb (diff)
downloadvolse-hubzilla-d8bd4fbb3e38bf0ff9c7b61dba58e20c0d097d75.tar.gz
volse-hubzilla-d8bd4fbb3e38bf0ff9c7b61dba58e20c0d097d75.tar.bz2
volse-hubzilla-d8bd4fbb3e38bf0ff9c7b61dba58e20c0d097d75.zip
Merge branch 'master' into newui
Diffstat (limited to 'update.php')
-rw-r--r--update.php30
1 files changed, 29 insertions, 1 deletions
diff --git a/update.php b/update.php
index 256ab48e8..adfb5fe02 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1079 );
+define( 'UPDATE_VERSION' , 1081 );
/**
*
@@ -646,3 +646,31 @@ 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` ) ");
+
+}
+
+function update_1080() {
+ q("ALTER TABLE `fcontact` ADD `updated` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00'");
+} \ No newline at end of file