mirror of
https://github.com/friendica/friendica
synced 2024-11-17 21:43:41 +00:00
notification data type
This commit is contained in:
parent
3e162bcf8f
commit
44b4baa0ca
3 changed files with 40 additions and 3 deletions
4
boot.php
4
boot.php
|
@ -9,9 +9,9 @@ require_once('include/nav.php');
|
|||
require_once('include/cache.php');
|
||||
|
||||
define ( 'FRIENDICA_PLATFORM', 'Friendica');
|
||||
define ( 'FRIENDICA_VERSION', '2.3.1211' );
|
||||
define ( 'FRIENDICA_VERSION', '2.3.1212' );
|
||||
define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
|
||||
define ( 'DB_UPDATE_VERSION', 1112 );
|
||||
define ( 'DB_UPDATE_VERSION', 1113 );
|
||||
|
||||
define ( 'EOL', "<br />\r\n" );
|
||||
define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' );
|
||||
|
|
18
database.sql
18
database.sql
|
@ -731,3 +731,21 @@ CREATE TABLE IF NOT EXISTS `conv` (
|
|||
INDEX ( `created` ),
|
||||
INDEX ( `updated` )
|
||||
) ENGINE = MyISAM DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
CREAT TABLE IF NOT EXISTS `notify` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||
`type` INT( 11 ) NOT NULL ,
|
||||
`name` CHAR( 255 ) NOT NULL ,
|
||||
`url` CHAR( 255 ) NOT NULL ,
|
||||
`photo` CHAR( 255 ) NOT NULL ,
|
||||
`date` DATETIME NOT NULL ,
|
||||
`msg` MEDIUMTEXT NOT NULL ,
|
||||
`uid` INT NOT NULL ,
|
||||
`link` CHAR( 255 ) NOT NULL ,
|
||||
`seen` TINYINT( 1 ) NOT NULL DEFAULT '0',
|
||||
INDEX ( `type` ),
|
||||
INDEX ( `uid` ),
|
||||
INDEX ( `seen` ),
|
||||
INDEX ( `date` )
|
||||
) ENGINE = MyISAM DEFAULT CHARSET=utf8;
|
||||
|
|
21
update.php
21
update.php
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
|
||||
define( 'UPDATE_VERSION' , 1112 );
|
||||
define( 'UPDATE_VERSION' , 1113 );
|
||||
|
||||
/**
|
||||
*
|
||||
|
@ -948,3 +948,22 @@ function update_1111() {
|
|||
q("ALTER TABLE `gcontact` ADD `connect` CHAR( 255 ) NOT NULL ");
|
||||
}
|
||||
|
||||
|
||||
function update_1112() {
|
||||
|
||||
q("CREATE TABLE IF NOT EXISTS `notify` (
|
||||
`id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY ,
|
||||
`type` INT( 11 ) NOT NULL ,
|
||||
`name` CHAR( 255 ) NOT NULL ,
|
||||
`url` CHAR( 255 ) NOT NULL ,
|
||||
`photo` CHAR( 255 ) NOT NULL ,
|
||||
`date` DATETIME NOT NULL ,
|
||||
`msg` MEDIUMTEXT NOT NULL ,
|
||||
`uid` INT NOT NULL ,
|
||||
`link` CHAR( 255 ) NOT NULL ,
|
||||
`seen` TINYINT( 1 ) NOT NULL DEFAULT '0'
|
||||
) ENGINE = MYISAM ");
|
||||
|
||||
q("ALTER TABLE `notify` ADD INDEX ( `type` ), ADD INDEX ( `uid`), ADD INDEX (`seen`), ADD INDEX (`date`) ");
|
||||
|
||||
}
|
Loading…
Reference in a new issue