From 44b4baa0ca43e78b92b08c57e86df13b5736bfaf Mon Sep 17 00:00:00 2001 From: friendica Date: Sun, 1 Jan 2012 00:39:22 -0800 Subject: [PATCH] notification data type --- boot.php | 4 ++-- database.sql | 18 ++++++++++++++++++ update.php | 21 ++++++++++++++++++++- 3 files changed, 40 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 76753d55ad..65bcfbafb0 100644 --- a/boot.php +++ b/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', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/database.sql b/database.sql index e96aff4b77..65ff3b9d0c 100644 --- a/database.sql +++ b/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; diff --git a/update.php b/update.php index 9b5772af1c..7293e1b985 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@