]> git.mxchange.org Git - friendica.git/commitdiff
Update: Don't throw an error if the target field already exists
authorMichael <heluecht@pirati.ca>
Thu, 16 Jul 2020 10:23:56 +0000 (10:23 +0000)
committerMichael <heluecht@pirati.ca>
Thu, 16 Jul 2020 10:23:56 +0000 (10:23 +0000)
update.php

index 83011108b539b6dcaafcd7b724e01d33bd9e4584..1448d818c8cb8f672c7204f53212655358c22d9b 100644 (file)
@@ -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;
        }