From: Michael Date: Wed, 28 Apr 2021 20:43:51 +0000 (+0000) Subject: Only delete "post-user" when it is has got the wrong structure X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=69f6b73033ae1e6466c92fff7192aa79af8c14d0;p=friendica.git Only delete "post-user" when it is has got the wrong structure --- diff --git a/update.php b/update.php index 819085f7ff..a34a5dbb0b 100644 --- a/update.php +++ b/update.php @@ -660,7 +660,7 @@ function update_1380() function pre_update_1395() { - if (DBStructure::existsTable('post-user') && !DBA::e("DROP TABLE `post-user`")) { + if (DBStructure::existsTable('post-user') && !DBStructure::existsColumn('post-user', ['id']) && !DBA::e("DROP TABLE `post-user`")) { return Update::FAILED; } return Update::SUCCESS;