new item view, sort by received date - not posted date.

This commit is contained in:
Friendika
2011-06-23 17:56:59 -07:00
parent 2bc4e24da2
commit 38cf37d3c3
6 changed files with 20 additions and 8 deletions
+8 -1
View File
@@ -1,6 +1,6 @@
<?php
define( 'UPDATE_VERSION' , 1066 );
define( 'UPDATE_VERSION' , 1067 );
/**
*
@@ -529,3 +529,10 @@ function update_1065() {
q("ALTER TABLE `intro` ADD `fid` INT NOT NULL DEFAULT '0' AFTER `uid`");
}
function update_1066() {
$r = q("ALTER TABLE `item` ADD `received` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `edited` ");
if($r)
q("ALTER TABLE `item` ADD INDEX ( `received` ) ");
$r = q("UPDATE `item` SET `received` = `edited` WHERE 1");
}