Update: Don't throw an error if the target field already exists
This commit is contained in:
parent
631095eefd
commit
84a340a064
|
@ -513,6 +513,7 @@ function update_1351()
|
||||||
function pre_update_1354()
|
function pre_update_1354()
|
||||||
{
|
{
|
||||||
if (DBStructure::existsColumn('contact', ['ffi_keyword_blacklist'])
|
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")) {
|
&& !DBA::e("ALTER TABLE `contact` CHANGE `ffi_keyword_blacklist` `ffi_keyword_denylist` text null")) {
|
||||||
return Update::FAILED;
|
return Update::FAILED;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user