aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-02-06 21:27:24 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-02-06 21:27:24 +0100
commit97b608db38edac6e4989c7343e9de8f32f46f263 (patch)
treeb303d7bf32e58abcd22efcc6fe0d9171284a3337 /update.php
parent64be33a3ff9ddae16ba7a57c842441a2d0058a5b (diff)
parentac3f3a6e9fb46ab608f26d4dfc12ee631e0e453a (diff)
downloadvolse-hubzilla-97b608db38edac6e4989c7343e9de8f32f46f263.tar.gz
volse-hubzilla-97b608db38edac6e4989c7343e9de8f32f46f263.tar.bz2
volse-hubzilla-97b608db38edac6e4989c7343e9de8f32f46f263.zip
Merge branch 'friendika-master'
Diffstat (limited to 'update.php')
-rw-r--r--update.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/update.php b/update.php
index f7bf9da1e..f90983747 100644
--- a/update.php
+++ b/update.php
@@ -328,3 +328,17 @@ function update_1033() {
`updated` DATETIME NOT NULL
) ENGINE = MYISAM DEFAULT CHARSET=utf8;");
}
+
+
+function update_1034() {
+
+ // If you have any of these parent-less posts they can cause problems, and
+ // we need to delete them. You can't see them anyway.
+ // Legitimate items will usually get re-created on the next
+ // pull from the hub.
+ // But don't get rid of a post that may have just come in
+ // and may not yet have the parent id set.
+
+ q("DELETE FROM `item` WHERE `parent` = 0 AND `created` < UTC_TIMESTAMP() - INTERVAL 2 MINUTE");
+
+}