]> git.mxchange.org Git - friendica.git/commitdiff
db support for starred (favorited) items
authorFriendika <info@friendika.com>
Sun, 3 Jul 2011 00:56:57 +0000 (17:56 -0700)
committerFriendika <info@friendika.com>
Sun, 3 Jul 2011 00:56:57 +0000 (17:56 -0700)
boot.php
database.sql
update.php

index 1807ff1c4130cdd993054836f35edbb91ccb4203..5ff8b50af4440003910b721b3824b7aa1f64e51f 100644 (file)
--- 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',                    "<br />\r\n"     );
 define ( 'ATOM_TIME',              'Y-m-d\TH:i:s\Z' );
index c9f9ae77a3fe6be198f19e357b292f4035395a56..4952e7c62394374239af1d1c7055c5417a6d00bd 100644 (file)
@@ -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`),
index 775bf7b92b1bf00ba81ec26c4387fac0a159c235..08f1e6854e79c0269cf47f6b1efb85044ed0b64b 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 
-define( 'UPDATE_VERSION' , 1072 );
+define( 'UPDATE_VERSION' , 1073 );
 
 /**
  *
@@ -580,3 +580,8 @@ function update_1071() {
        q("ALTER TABLE `photo` ADD INDEX ( `profile` ) ");
 
 }
+
+function update_1072() {
+       q("ALTER TABLE `item` ADD `starred` TINYINT( 1 ) NOT NULL DEFAULT '0' AFTER `visible` ");
+       q("ALTER TABLE `item` ADD INDEX ( `starred` ) ");
+}