aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-26 05:42:32 -0700
committerFriendika <info@friendika.com>2011-06-26 05:42:32 -0700
commit22e89220889759256b48323ee1a66257e2121ef7 (patch)
tree0e7940e9f16444fbc608c3f0f35586205c3568e6
parentc9604ef57839e16839e69aa23a21ed8921409343 (diff)
downloadvolse-hubzilla-22e89220889759256b48323ee1a66257e2121ef7.tar.gz
volse-hubzilla-22e89220889759256b48323ee1a66257e2121ef7.tar.bz2
volse-hubzilla-22e89220889759256b48323ee1a66257e2121ef7.zip
friend suggest structures, cont.
-rw-r--r--boot.php2
-rw-r--r--database.sql2
-rw-r--r--update.php9
3 files changed, 10 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 9321b43c0..5a7af9725 100644
--- a/boot.php
+++ b/boot.php
@@ -6,7 +6,7 @@ ini_set('pcre.backtrack_limit', 250000);
define ( 'FRIENDIKA_VERSION', '2.2.1022' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
-define ( 'DB_UPDATE_VERSION', 1067 );
+define ( 'DB_UPDATE_VERSION', 1068 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/database.sql b/database.sql
index b99796d83..7b70cfc64 100644
--- a/database.sql
+++ b/database.sql
@@ -514,6 +514,8 @@ CREATE TABLE IF NOT EXISTS `fcontact` (
CREATE TABLE IF NOT EXISTS `ffinder` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
+`type` CHAR( 16 ) NOT NULL,
+`note` TEXT NOT NULL,
`uid` INT UNSIGNED NOT NULL ,
`cid` INT UNSIGNED NOT NULL ,
`fid` INT UNSIGNED NOT NULL
diff --git a/update.php b/update.php
index 13187ac51..409e5d48e 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1067 );
+define( 'UPDATE_VERSION' , 1068 );
/**
*
@@ -535,4 +535,9 @@ function update_1066() {
q("ALTER TABLE `item` ADD INDEX ( `received` ) ");
$r = q("UPDATE `item` SET `received` = `edited` WHERE 1");
-} \ No newline at end of file
+}
+
+function update_1067() {
+ q("ALTER TABLE `ffinder` ADD `type` CHAR( 16 ) NOT NULL AFTER `id` ,
+ ADD `note` TEXT NOT NULL AFTER `type` ");
+}