item/event linkage

This commit is contained in:
Friendika 2011-05-27 18:47:28 -07:00
parent a2b26948d8
commit 73e0986710
3 changed files with 6 additions and 1 deletions

View File

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

@ -186,6 +186,7 @@ CREATE TABLE IF NOT EXISTS `item` (
`target` text NOT NULL, `target` text NOT NULL,
`plink` char(255) NOT NULL, `plink` char(255) NOT NULL,
`resource-id` char(255) NOT NULL, `resource-id` char(255) NOT NULL,
`event-id` int(10) unsigned NOT NULL,
`tag` mediumtext NOT NULL, `tag` mediumtext NOT NULL,
`attach` mediumtext NOT NULL, `attach` mediumtext NOT NULL,
`inform` mediumtext NOT NULL, `inform` mediumtext NOT NULL,

View File

@ -495,3 +495,7 @@ function update_1056() {
function update_1057() { function update_1057() {
q("ALTER TABLE `attach` ADD `filename` CHAR( 255 ) NOT NULL AFTER `hash` "); q("ALTER TABLE `attach` ADD `filename` CHAR( 255 ) NOT NULL AFTER `hash` ");
} }
function update_1058() {
q("ALTER TABLE `item` ADD `event-id` INT NOT NULL AFTER `resource-id` ");
}