X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=819085f7ff2f5c6f1342d4f36c3a9e851997b039;hb=8a5560ec8f1474b8f250abc7db61a0048f1a88e2;hp=b8d357da229e87d4447f7afa0686b6f868478683;hpb=d666b6cb42a1b0d46e9fae914a803fbd5e10e2ab;p=friendica.git diff --git a/update.php b/update.php index b8d357da22..819085f7ff 100644 --- a/update.php +++ b/update.php @@ -1,6 +1,6 @@ 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; } }