]> git.mxchange.org Git - friendica.git/blobdiff - update.php
Misc cleanups (#5417)
[friendica.git] / update.php
index c39212152f84cfeb5bfc8e5c809dd3f8311171bb..ca427186d4bb547b11f073672e63463c0f43a9aa 100644 (file)
@@ -85,7 +85,6 @@ function update_1189() {
 }
 
 function update_1191() {
-
        Config::set('system', 'maintenance', 1);
 
        if (Addon::isEnabled('forumlist')) {
@@ -143,7 +142,6 @@ function update_1191() {
        Config::set('system', 'maintenance', 0);
 
        return UPDATE_SUCCESS;
-
 }
 
 function update_1203() {
@@ -233,3 +231,15 @@ function update_1261() {
        dba::update('contact', ['blocked' => false, 'pending' => false], ['uid' => 0, 'blocked' => true, 'pending' => true]);
        return UPDATE_SUCCESS;
 }
+
+function update_1278() {
+       Config::set('system', 'maintenance', 1);
+       Config::set('system', 'maintenance_reason', L10n::t('%s: Updating post-type.', DBM::date().' '.date('e')));
+
+       Item::update(['post-type' => Item::PT_PAGE], ['bookmark' => true]);
+       Item::update(['post-type' => Item::PT_PERSONAL_NOTE], ['type' => 'note']);
+
+       Config::set('system', 'maintenance', 0);
+
+       return UPDATE_SUCCESS;
+}