]> git.mxchange.org Git - friendica.git/commitdiff
item/event linkage
authorFriendika <info@friendika.com>
Sat, 28 May 2011 01:47:28 +0000 (18:47 -0700)
committerFriendika <info@friendika.com>
Sat, 28 May 2011 01:47:28 +0000 (18:47 -0700)
boot.php
database.sql
update.php

index af16e8cbbf8058a086d7db2e7262e3a661775d63..6de0f7a7fa49ac22ec04a299c37552f0faed9589 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -6,7 +6,7 @@ ini_set('pcre.backtrack_limit', 250000);
 
 define ( 'FRIENDIKA_VERSION',      '2.2.993' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.21'    );
-define ( 'DB_UPDATE_VERSION',      1058      );
+define ( 'DB_UPDATE_VERSION',      1059      );
 
 define ( 'EOL',                    "<br />\r\n"     );
 define ( 'ATOM_TIME',              'Y-m-d\TH:i:s\Z' );
index 008d00a0da3132fe8241c8be6a03d88080d754c2..8948e9b06104aa0442d158dabafa6c1a76424ab1 100644 (file)
@@ -186,6 +186,7 @@ CREATE TABLE IF NOT EXISTS `item` (
   `target` text NOT NULL,
   `plink` char(255) NOT NULL, 
   `resource-id` char(255) NOT NULL,
+  `event-id` int(10) unsigned NOT NULL,
   `tag` mediumtext NOT NULL,
   `attach` mediumtext NOT NULL,
   `inform` mediumtext NOT NULL,
index 30ebd66f2811ced19ec6097684daf3faaf11bb72..a53e4df78ce8b25b8a7f72b750cc566a3edf43cb 100644 (file)
@@ -495,3 +495,7 @@ function update_1056() {
 function update_1057() {
        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` ");
+}