]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Started the french translation (up to the "TODO" comment in view/fr/strings.php)
[friendica.git] / update.php
index ae0e35531d358469ba6ce3b89e85e36912379305..0bd58d6d48251f080607c3f1491fc49bd744101d 100644 (file)
@@ -302,3 +302,21 @@ function update_1030() {
 
 }
 
+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` ");
+}