]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Update DB version
[friendica.git] / update.php
index 64bd7a9c338dbe9ad77f46e47d1c23193414dc23..85f407d36ce223e1a2d222f967bbf7a1918638ed 100644 (file)
@@ -1038,3 +1038,26 @@ function update_1440()
 
        return Update::SUCCESS;
 }
+
+function update_1441()
+{
+       $languages = DI::l10n()->getAvailableLanguages();
+
+       $albums = [Photo::PROFILE_PHOTOS];
+       foreach ($languages as $language) {
+               $albums[] = DI::l10n()->withLang($language)->t(Photo::PROFILE_PHOTOS);
+       }
+       $albums = array_unique($albums);
+
+       Photo::update(['photo-type' => Photo::USER_AVATAR], ['album' => $albums]);
+
+       return Update::SUCCESS;
+}
+
+function update_1442()
+{
+       // transform blocked intros into ignored intros
+       DBA::update('intro', ['ignore' => 1, 'blocked' => 0], ['blocked' => 1]);
+
+       return Update::SUCCESS;
+}