Browse Source

There are no dead nodes anymore

pull/7355/head
Jeroen De Meerleer 1 week ago
parent
commit
01dc0c031c
4 changed files with 13 additions and 3 deletions
  1. 1
    1
      config/dbstructure.config.php
  2. 1
    0
      database.sql
  3. 1
    2
      src/Content/ContactSelector.php
  4. 10
    0
      update.php

+ 1
- 1
config/dbstructure.config.php View File

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

+ 1
- 0
database.sql View File

@@ -1,6 +1,6 @@
1 1
 -- ------------------------------------------
2 2
 -- Friendica 2019.09-dev (Dalmatian Bellflower)
3
+-- DB_UPDATE_VERSION 1318
3 4
 -- ------------------------------------------
4 5
 
5 6
 

+ 1
- 2
src/Content/ContactSelector.php View File

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

+ 10
- 0
update.php View File

@@ -373,4 +373,14 @@ function update_1309()
373 373
 function update_1315()
374 374
 {
375 375
 	DBA::delete('item-delivery-data', ['postopts' => '', 'inform' => '', 'queue_count' => 0, 'queue_done' => 0]);
376
+	return Update::SUCCESS;
377
+}
378
+
379
+function update_1318()
380
+{
381
+	DBA::update('profile', ['marital' => "In a relation"], ['marital' => "Unavailable"]);
382
+	DBA::update('profile', ['marital' => "Single"], ['marital' => "Available"]);
383
+
384
+	Worker::add(PRIORITY_LOW, 'ProfileUpdate');
385
+	return Update::SUCCESS;
376 386
 }

Loading…
Cancel
Save