X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=a34a5dbb0b92893b9a74e7937d46c161c82dc0b5;hb=f5f919aead458a7a003fff02e8956932a913c514;hp=7dd0369a3a13443a0586f4ce6f3715d4309ddb64;hpb=c247d5fbebc2c7ded8305d97a911fef6672ec27a;p=friendica.git diff --git a/update.php b/update.php index 7dd0369a3a..a34a5dbb0b 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ ['notifier', 'delivery', 'apdelivery', 'done' => false]]); while ($task = DBA::fetch($tasks)) { @@ -873,6 +883,32 @@ function update_1403() continue 2; } DBA::update('workerqueue', ['parameter' => json_encode($parameters)], ['id' => $task['id']]); + + return Update::SUCCESS; + } +} + +function update_1407() +{ + if (!DBA::e("UPDATE `post` SET `causer-id` = NULL WHERE `causer-id` = 0")) { + return Update::FAILED; + } + if (!DBA::e("UPDATE `post-user` SET `causer-id` = NULL WHERE `causer-id` = 0")) { + return Update::FAILED; + } + if (!DBA::e("UPDATE `post-thread` SET `causer-id` = NULL WHERE `causer-id` = 0")) { + return Update::FAILED; + } + if (!DBA::e("UPDATE `post-thread-user` SET `causer-id` = NULL WHERE `causer-id` = 0")) { + return Update::FAILED; } + return Update::SUCCESS; } + +function update_1413() +{ + if (!DBA::e("UPDATE `post-user` SET `post-reason` = `post-type` WHERE `post-type` >= 64 and `post-type` <= 75")) { + return Update::FAILED; + } +}