aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorFriendika <info@friendika.com>2011-06-23 17:56:59 -0700
committerFriendika <info@friendika.com>2011-06-23 17:56:59 -0700
commit38cf37d3c3a4bc9873aa12eed5167b356282385f (patch)
tree346398bcfbb748aa1aa3f0658af020ddb487d946 /update.php
parent2bc4e24da22d7a75bbdbae18e0c64575ff7fe858 (diff)
downloadvolse-hubzilla-38cf37d3c3a4bc9873aa12eed5167b356282385f.tar.gz
volse-hubzilla-38cf37d3c3a4bc9873aa12eed5167b356282385f.tar.bz2
volse-hubzilla-38cf37d3c3a4bc9873aa12eed5167b356282385f.zip
new item view, sort by received date - not posted date.
Diffstat (limited to 'update.php')
-rw-r--r--update.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/update.php b/update.php
index 8edd2aa92..13187ac51 100644
--- a/update.php
+++ b/update.php
@@ -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");
+} \ No newline at end of file