friend suggest structures, cont.

This commit is contained in:
Friendika 2011-06-26 05:42:32 -07:00
parent c9604ef578
commit 22e8922088
3 changed files with 10 additions and 3 deletions

View file

@ -6,7 +6,7 @@ ini_set('pcre.backtrack_limit', 250000);
define ( 'FRIENDIKA_VERSION', '2.2.1022' ); define ( 'FRIENDIKA_VERSION', '2.2.1022' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1067 ); define ( 'DB_UPDATE_VERSION', 1068 );
define ( 'EOL', "<br />\r\n" ); define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );

View file

@ -514,6 +514,8 @@ CREATE TABLE IF NOT EXISTS `fcontact` (
CREATE TABLE IF NOT EXISTS `ffinder` ( CREATE TABLE IF NOT EXISTS `ffinder` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY , `id` INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY ,
`type` CHAR( 16 ) NOT NULL,
`note` TEXT NOT NULL,
`uid` INT UNSIGNED NOT NULL , `uid` INT UNSIGNED NOT NULL ,
`cid` INT UNSIGNED NOT NULL , `cid` INT UNSIGNED NOT NULL ,
`fid` INT UNSIGNED NOT NULL `fid` INT UNSIGNED NOT NULL

View file

@ -1,6 +1,6 @@
<?php <?php
define( 'UPDATE_VERSION' , 1067 ); define( 'UPDATE_VERSION' , 1068 );
/** /**
* *
@ -536,3 +536,8 @@ function update_1066() {
$r = q("UPDATE `item` SET `received` = `edited` WHERE 1"); $r = q("UPDATE `item` SET `received` = `edited` WHERE 1");
} }
function update_1067() {
q("ALTER TABLE `ffinder` ADD `type` CHAR( 16 ) NOT NULL AFTER `id` ,
ADD `note` TEXT NOT NULL AFTER `type` ");
}