diff options
author | Friendika <info@friendika.com> | 2011-06-26 05:42:32 -0700 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-06-26 05:42:32 -0700 |
commit | 22e89220889759256b48323ee1a66257e2121ef7 (patch) | |
tree | 0e7940e9f16444fbc608c3f0f35586205c3568e6 | |
parent | c9604ef57839e16839e69aa23a21ed8921409343 (diff) | |
download | volse-hubzilla-22e89220889759256b48323ee1a66257e2121ef7.tar.gz volse-hubzilla-22e89220889759256b48323ee1a66257e2121ef7.tar.bz2 volse-hubzilla-22e89220889759256b48323ee1a66257e2121ef7.zip |
friend suggest structures, cont.
-rw-r--r-- | boot.php | 2 | ||||
-rw-r--r-- | database.sql | 2 | ||||
-rw-r--r-- | update.php | 9 |
3 files changed, 10 insertions, 3 deletions
@@ -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` "); +} |