X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=update.php;h=ec6a94f0e3ce982b21ab288e06749860641af10f;hb=5b0003fd0f01d28b024e6954ff1066d4bcbbe12d;hp=f163faf02f9ef740ebc69a3e2d2b24a1d58714e2;hpb=88eee2b9c132528f2d6e3ac11faea8d4f3fe37d8;p=friendica.git diff --git a/update.php b/update.php index f163faf02f..ec6a94f0e3 100644 --- a/update.php +++ b/update.php @@ -736,3 +736,15 @@ function pre_update_1364() return Update::SUCCESS; } + +function pre_update_1365() +{ + if (!DBA::e("DELETE FROM `notify-threads` WHERE NOT `notify-id` IN (SELECT `id` FROM `notify`)")) { + return Update::FAILED; + } + + if (!DBA::e("DELETE FROM `thread` WHERE NOT `iid` IN (SELECT `id` FROM `item`)")) { + return Update::FAILED; + } + +}