]> git.mxchange.org Git - friendica.git/blobdiff - update.php
german translation of wall_item_drop.tpl
[friendica.git] / update.php
index 1b75d0434c1fdda8c60fcd14c2f9e833183eea34..0bd58d6d48251f080607c3f1491fc49bd744101d 100644 (file)
@@ -300,4 +300,23 @@ function update_1030() {
        ) ENGINE = MYISAM DEFAULT CHARSET=utf8 ");
 
 
-}
\ No newline at end of file
+}
+
+function update_1031() {
+       // Repair any bad links that slipped into the item table
+       $r = q("SELECT `id`, `object` FROM `item` WHERE `object` != '' ");
+       if($r && count($r)) {
+               foreach($r as $rr) {
+                       if(strstr($rr['object'],'type="http')) {
+                               q("UPDATE `item` SET `object` = '%s' WHERE `id` = %d LIMIT 1",
+                                       dbesc(str_replace('type="http','href="http',$rr['object'])),
+                                       intval($rr['id'])
+                               );
+                       }
+               }
+       }
+}
+       
+function update_1032() {
+       q("ALTER TABLE `profile` ADD `pdesc` CHAR( 255 ) NOT NULL AFTER `name` ");
+}