mirror of
https://github.com/friendica/friendica
synced 2025-04-27 05:10:10 +00:00
Rename contact table column to ffi_keyword_denylist
This commit is contained in:
parent
586eddbd1a
commit
34463f37e4
11 changed files with 28 additions and 17 deletions
11
update.php
11
update.php
|
@ -45,6 +45,7 @@ use Friendica\Core\Logger;
|
|||
use Friendica\Core\Update;
|
||||
use Friendica\Core\Worker;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\Database\DBStructure;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
use Friendica\Model\GContact;
|
||||
|
@ -508,3 +509,13 @@ function update_1351()
|
|||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
||||
function pre_update_1354()
|
||||
{
|
||||
if(DBStructure::existsColumn('contact', 'ffi_keyword_blacklist')
|
||||
&& !DBA::e("ALTER TABLE `contact` CHANGE `ffi_keyword_blacklist` `ffi_keyword_denylist` text null")) {
|
||||
return Update::FAILED;
|
||||
}
|
||||
|
||||
return Update::SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue