extensible notify structure

This commit is contained in:
friendica 2012-01-01 22:44:03 -08:00
parent 0afb636e46
commit d52f833c5f
3 changed files with 10 additions and 3 deletions

View File

@ -11,7 +11,7 @@ require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1213' ); define ( 'FRIENDICA_VERSION', '2.3.1213' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1113 ); define ( 'DB_UPDATE_VERSION', 1114 );
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

@ -744,6 +744,8 @@ CREAT TABLE IF NOT EXISTS `notify` (
`uid` INT NOT NULL , `uid` INT NOT NULL ,
`link` CHAR( 255 ) NOT NULL , `link` CHAR( 255 ) NOT NULL ,
`seen` TINYINT( 1 ) NOT NULL DEFAULT '0', `seen` TINYINT( 1 ) NOT NULL DEFAULT '0',
`verb` CHAR( 255 ) NOT NULL,
`otype` CHAR( 16 ) NOT NULL,
INDEX ( `type` ), INDEX ( `type` ),
INDEX ( `uid` ), INDEX ( `uid` ),
INDEX ( `seen` ), INDEX ( `seen` ),

View File

@ -1,6 +1,6 @@
<?php <?php
define( 'UPDATE_VERSION' , 1113 ); define( 'UPDATE_VERSION' , 1114 );
/** /**
* *
@ -967,3 +967,8 @@ function update_1112() {
q("ALTER TABLE `notify` ADD INDEX ( `type` ), ADD INDEX ( `uid`), ADD INDEX (`seen`), ADD INDEX (`date`) "); q("ALTER TABLE `notify` ADD INDEX ( `type` ), ADD INDEX ( `uid`), ADD INDEX (`seen`), ADD INDEX (`date`) ");
} }
function update_1113() {
q("ALTER TABLE `notify` ADD `verb` CHAR( 255 ) NOT NULL ,
ADD `otype` CHAR( 16 ) NOT NULL");
}