db support for starred (favorited) items

This commit is contained in:
Friendika 2011-07-02 17:56:57 -07:00
parent 24836f2966
commit 07dc1c3ca9
3 changed files with 10 additions and 3 deletions

View 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` ) ");
}