There are no dead nodes anymore

This commit is contained in:
Jeroen De Meerleer 2019-07-09 09:23:36 +02:00
父節點 5accf11c8d
當前提交 01dc0c031c
共有 4 個檔案被更改,包括 13 行新增4 行删除

查看文件

@ -34,7 +34,7 @@
use Friendica\Database\DBA;
if (!defined('DB_UPDATE_VERSION')) {
define('DB_UPDATE_VERSION', 1317);
define('DB_UPDATE_VERSION', 1318);
}
return [

查看文件

@ -1,6 +1,6 @@
-- ------------------------------------------
-- Friendica 2019.09-dev (Dalmatian Bellflower)
-- DB_UPDATE_VERSION 1316
-- DB_UPDATE_VERSION 1318
-- ------------------------------------------

查看文件

@ -231,8 +231,7 @@ class ContactSelector
'' => L10n::t('No answer'),
'Single' => L10n::t('Single'),
'Lonely' => L10n::t('Lonely'),
'Available' => L10n::t('Available'),
'Unavailable' => L10n::t('Unavailable'),
'In a relation' => L10n::t('In a relation'),
'Has crush' => L10n::t('Has crush'),
'Infatuated' => L10n::t('Infatuated'),
'Dating' => L10n::t('Dating'),

查看文件

@ -373,4 +373,14 @@ function update_1309()
function update_1315()
{
DBA::delete('item-delivery-data', ['postopts' => '', 'inform' => '', 'queue_count' => 0, 'queue_done' => 0]);
return Update::SUCCESS;
}
function update_1318()
{
DBA::update('profile', ['marital' => "In a relation"], ['marital' => "Unavailable"]);
DBA::update('profile', ['marital' => "Single"], ['marital' => "Available"]);
Worker::add(PRIORITY_LOW, 'ProfileUpdate');
return Update::SUCCESS;
}