Browse Source

friend suggest structures, cont.

pull/1/head
Friendika 11 years ago
parent
commit
22e8922088
  1. 2
      boot.php
  2. 2
      database.sql
  3. 9
      update.php

2
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' );

2
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

9
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");
}
}
function update_1067() {
q("ALTER TABLE `ffinder` ADD `type` CHAR( 16 ) NOT NULL AFTER `id` ,
ADD `note` TEXT NOT NULL AFTER `type` ");
}

Loading…
Cancel
Save