From 07dc1c3ca931322af683edf9791ef47e295ca6cc Mon Sep 17 00:00:00 2001 From: Friendika Date: Sat, 2 Jul 2011 17:56:57 -0700 Subject: [PATCH] db support for starred (favorited) items --- boot.php | 4 ++-- database.sql | 2 ++ update.php | 7 ++++++- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/boot.php b/boot.php index 1807ff1c41..5ff8b50af4 100644 --- a/boot.php +++ b/boot.php @@ -4,9 +4,9 @@ set_time_limit(0); ini_set('pcre.backtrack_limit', 250000); -define ( 'FRIENDIKA_VERSION', '2.2.1028' ); +define ( 'FRIENDIKA_VERSION', '2.2.1029' ); define ( 'DFRN_PROTOCOL_VERSION', '2.21' ); -define ( 'DB_UPDATE_VERSION', 1072 ); +define ( 'DB_UPDATE_VERSION', 1073 ); define ( 'EOL', "
\r\n" ); define ( 'ATOM_TIME', 'Y-m-d\TH:i:s\Z' ); diff --git a/database.sql b/database.sql index c9f9ae77a3..4952e7c623 100644 --- a/database.sql +++ b/database.sql @@ -202,6 +202,7 @@ CREATE TABLE IF NOT EXISTS `item` ( `private` tinyint(1) NOT NULL DEFAULT '0', `pubmail` tinyint(1) NOT NULL DEFAULT '0', `visible` tinyint(1) NOT NULL DEFAULT '0', + `starred` tinyint(1) NOT NULL DEFAULT '0', `unseen` tinyint(1) NOT NULL DEFAULT '1', `deleted` tinyint(1) NOT NULL DEFAULT '0', `last-child` tinyint(1) unsigned NOT NULL DEFAULT '1', @@ -218,6 +219,7 @@ CREATE TABLE IF NOT EXISTS `item` ( KEY `edited` (`edited`), KEY `received` (`received`), KEY `visible` (`visible`), + KEY `starred` (`starred`), KEY `deleted` (`deleted`), KEY `last-child` (`last-child`), KEY `unseen` (`unseen`), diff --git a/update.php b/update.php index 775bf7b92b..08f1e6854e 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@