aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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` ");
+}