From 9c8051ef648782adcc97f5cbf9fa2c6f8364135b Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Sun, 7 Jul 2019 23:06:37 +0200 Subject: [PATCH] Created updatescript --- config/dbstructure.config.php | 2 +- update.php | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/config/dbstructure.config.php b/config/dbstructure.config.php index 3c2b81352..284a6ae8a 100755 --- a/config/dbstructure.config.php +++ b/config/dbstructure.config.php @@ -34,7 +34,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1316); + define('DB_UPDATE_VERSION', 1317); } return [ diff --git a/update.php b/update.php index aead1b93d..0c6b4393e 100644 --- a/update.php +++ b/update.php @@ -374,3 +374,13 @@ function update_1315() { DBA::delete('item-delivery-data', ['postopts' => '', 'inform' => '', 'queue_count' => 0, 'queue_done' => 0]); } + +function update_1316() +{ + DBA::update('profile', ['marital' => "In a relation"], ['marital' => "Unavailable"]); + DBA::update('profile', ['marital' => "Single"], ['marital' => "Available"]); + + Worker::add(PRIORITY_LOW, 'ProfileUpdate'); + Contact::updateSelfFromUserID(); + GContact::updateForUser(); +} \ No newline at end of file