aboutsummaryrefslogtreecommitdiffstats
path: root/update.php
diff options
context:
space:
mode:
authorfabrixxm <fabrix.xm@gmail.com>2011-02-08 18:13:41 +0100
committerfabrixxm <fabrix.xm@gmail.com>2011-02-08 18:13:41 +0100
commit26dfb73f48d4fcd4671d136e53f52bb81995ea34 (patch)
tree36902abc509c4dbf6abc27fb5ba7997ee921f437 /update.php
parent97b608db38edac6e4989c7343e9de8f32f46f263 (diff)
parent9a1e5aaf09c1b940f4615f7dc2999e16b019ab18 (diff)
downloadvolse-hubzilla-26dfb73f48d4fcd4671d136e53f52bb81995ea34.tar.gz
volse-hubzilla-26dfb73f48d4fcd4671d136e53f52bb81995ea34.tar.bz2
volse-hubzilla-26dfb73f48d4fcd4671d136e53f52bb81995ea34.zip
Merge branch 'friendika-master'
Diffstat (limited to 'update.php')
-rw-r--r--update.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/update.php b/update.php
index f90983747..e51e8ac33 100644
--- a/update.php
+++ b/update.php
@@ -342,3 +342,24 @@ function update_1034() {
q("DELETE FROM `item` WHERE `parent` = 0 AND `created` < UTC_TIMESTAMP() - INTERVAL 2 MINUTE");
}
+
+
+function update_1035() {
+
+ q("ALTER TABLE `contact` ADD `success_update` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00' AFTER `last-update` ");
+
+}
+
+function update_1036() {
+
+ $r = dbq("SELECT * FROM `contact` WHERE `network` = 'dfrn' && `photo` LIKE '%include/photo%' ");
+ if(count($r)) {
+ foreach($r as $rr) {
+ q("UPDATE `contact` SET `photo` = '%s', `thumb` = '%s', `micro` = '%s' WHERE `id` = %d LIMIT 1",
+ dbesc(str_replace('include/photo','photo',$rr['photo'])),
+ dbesc(str_replace('include/photo','photo',$rr['thumb'])),
+ dbesc(str_replace('include/photo','photo',$rr['micro'])),
+ intval($rr['id']));
+ }
+ }
+}