aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-01-01 22:44:03 -0800
committerfriendica <info@friendica.com>2012-01-01 22:44:03 -0800
commitd52f833c5ffac615fefcfe6ad66b69d17939d6bc (patch)
tree990b40a9b5a260a2c98e940b7e5c571e88a3fc62
parent0afb636e466a689600e974c6d7bb1f4cfbcf7193 (diff)
downloadvolse-hubzilla-d52f833c5ffac615fefcfe6ad66b69d17939d6bc.tar.gz
volse-hubzilla-d52f833c5ffac615fefcfe6ad66b69d17939d6bc.tar.bz2
volse-hubzilla-d52f833c5ffac615fefcfe6ad66b69d17939d6bc.zip
extensible notify structure
-rw-r--r--boot.php2
-rw-r--r--database.sql2
-rw-r--r--update.php9
3 files changed, 10 insertions, 3 deletions
diff --git a/boot.php b/boot.php
index 5b8845a91..2f32130f5 100644
--- a/boot.php
+++ b/boot.php
@@ -11,7 +11,7 @@ require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1213' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
-define ( 'DB_UPDATE_VERSION', 1113 );
+define ( 'DB_UPDATE_VERSION', 1114 );
define ( 'EOL', "<br />\r\n" );
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
diff --git a/database.sql b/database.sql
index 65ff3b9d0..6dbfdbb37 100644
--- a/database.sql
+++ b/database.sql
@@ -744,6 +744,8 @@ CREAT TABLE IF NOT EXISTS `notify` (
`uid` INT NOT NULL ,
`link` CHAR( 255 ) NOT NULL ,
`seen` TINYINT( 1 ) NOT NULL DEFAULT '0',
+`verb` CHAR( 255 ) NOT NULL,
+`otype` CHAR( 16 ) NOT NULL,
INDEX ( `type` ),
INDEX ( `uid` ),
INDEX ( `seen` ),
diff --git a/update.php b/update.php
index 7293e1b98..6eade22f7 100644
--- a/update.php
+++ b/update.php
@@ -1,6 +1,6 @@
<?php
-define( 'UPDATE_VERSION' , 1113 );
+define( 'UPDATE_VERSION' , 1114 );
/**
*
@@ -966,4 +966,9 @@ function update_1112() {
q("ALTER TABLE `notify` ADD INDEX ( `type` ), ADD INDEX ( `uid`), ADD INDEX (`seen`), ADD INDEX (`date`) ");
-} \ No newline at end of file
+}
+
+function update_1113() {
+ q("ALTER TABLE `notify` ADD `verb` CHAR( 255 ) NOT NULL ,
+ADD `otype` CHAR( 16 ) NOT NULL");
+}