1
0
Fork 0

structures for friend suggestions

This commit is contained in:
Friendika 2011-06-21 18:03:54 -07:00
parent e6086e2363
commit a51fc14e69
3 changed files with 8 additions and 2 deletions

View file

@ -6,7 +6,7 @@ ini_set('pcre.backtrack_limit', 250000);
define ( 'FRIENDIKA_VERSION', '2.2.1018' ); define ( 'FRIENDIKA_VERSION', '2.2.1018' );
define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' );
define ( 'DB_UPDATE_VERSION', 1065 ); define ( 'DB_UPDATE_VERSION', 1066 );
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

@ -139,6 +139,7 @@ CREATE TABLE IF NOT EXISTS `group_member` (
CREATE TABLE IF NOT EXISTS `intro` ( CREATE TABLE IF NOT EXISTS `intro` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT, `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`uid` int(10) unsigned NOT NULL, `uid` int(10) unsigned NOT NULL,
`fid` int(11) NOT NULL DEFAULT '0',
`contact-id` int(11) NOT NULL, `contact-id` int(11) NOT NULL,
`knowyou` tinyint(1) NOT NULL, `knowyou` tinyint(1) NOT NULL,
`duplex` tinyint(1) NOT NULL DEFAULT '0', `duplex` tinyint(1) NOT NULL DEFAULT '0',

View file

@ -1,6 +1,6 @@
<?php <?php
define( 'UPDATE_VERSION' , 1065 ); define( 'UPDATE_VERSION' , 1066 );
/** /**
* *
@ -524,3 +524,8 @@ function update_1063() {
function update_1064() { function update_1064() {
q("ALTER TABLE `item` ADD `app` CHAR( 255 ) NOT NULL AFTER `body` "); q("ALTER TABLE `item` ADD `app` CHAR( 255 ) NOT NULL AFTER `body` ");
} }
function update_1065() {
q("ALTER TABLE `intro` ADD `fid` INT NOT NULL DEFAULT '0' AFTER `uid`");
}