From: Michael Date: Thu, 16 Jul 2020 10:23:56 +0000 (+0000) Subject: Update: Don't throw an error if the target field already exists X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=84a340a064017587dde0d8d4db346117e6dcb985;p=friendica.git Update: Don't throw an error if the target field already exists --- diff --git a/update.php b/update.php index 83011108b5..1448d818c8 100644 --- a/update.php +++ b/update.php @@ -513,6 +513,7 @@ function update_1351() function pre_update_1354() { if (DBStructure::existsColumn('contact', ['ffi_keyword_blacklist']) + && !DBStructure::existsColumn('contact', ['ffi_keyword_denylist']) && !DBA::e("ALTER TABLE `contact` CHANGE `ffi_keyword_blacklist` `ffi_keyword_denylist` text null")) { return Update::FAILED; }