]> git.mxchange.org Git - friendica.git/commitdiff
[Database version 1444] Add "hidden" field to user-contact table
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 10 Nov 2021 12:05:07 +0000 (07:05 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 21 Nov 2021 23:59:37 +0000 (18:59 -0500)
- This is a user-specific field

database.sql
doc/database/db_user-contact.md
static/dbstructure.config.php

index fbccddcb281da5145efbcbdfe0f23adead4df25d..9567b7ac1b8b8517a4a1e11052f0ad65e34c1bac 100644 (file)
@@ -1,6 +1,6 @@
 -- ------------------------------------------
 -- Friendica 2021.12-dev (Siberian Iris)
--- DB_UPDATE_VERSION 1443
+-- DB_UPDATE_VERSION 1444
 -- ------------------------------------------
 
 
@@ -1511,6 +1511,7 @@ CREATE TABLE IF NOT EXISTS `user-contact` (
        `blocked` boolean COMMENT 'Contact is completely blocked for this user',
        `ignored` boolean COMMENT 'Posts from this contact are ignored',
        `collapsed` boolean COMMENT 'Posts from this contact are collapsed',
+       `hidden` boolean COMMENT 'This contact is hidden from the others',
        `pending` boolean COMMENT '',
        `rel` tinyint unsigned COMMENT 'The kind of the relation between the user and the contact',
        `info` mediumtext COMMENT '',
index 5dab0c4bd6d13e91d974e6659015e60b27b90063..2cd910bb059399a46ae1853e64dea34de5b1d794 100644 (file)
@@ -14,6 +14,7 @@ Fields
 | blocked                   | Contact is completely blocked for this user                  | boolean            | YES  |     | NULL    |       |
 | ignored                   | Posts from this contact are ignored                          | boolean            | YES  |     | NULL    |       |
 | collapsed                 | Posts from this contact are collapsed                        | boolean            | YES  |     | NULL    |       |
+| hidden                    | This contact is hidden from the others                       | boolean            | YES  |     | NULL    |       |
 | pending                   |                                                              | boolean            | YES  |     | NULL    |       |
 | rel                       | The kind of the relation between the user and the contact    | tinyint unsigned   | YES  |     | NULL    |       |
 | info                      |                                                              | mediumtext         | YES  |     | NULL    |       |
index b52f67064808cd7a87e5787e5b76f92bae1e11e3..97cde18bb5b4765733f421a995f92f6cce905dda 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1443);
+       define('DB_UPDATE_VERSION', 1444);
 }
 
 return [
@@ -1530,6 +1530,7 @@ return [
                        "blocked" => ["type" => "boolean", "comment" => "Contact is completely blocked for this user"],
                        "ignored" => ["type" => "boolean", "comment" => "Posts from this contact are ignored"],
                        "collapsed" => ["type" => "boolean", "comment" => "Posts from this contact are collapsed"],
+                       "hidden" => ["type" => "boolean", "comment" => "This contact is hidden from the others"],
                        "pending" => ["type" => "boolean", "comment" => ""],
                        "rel" => ["type" => "tinyint unsigned", "comment" => "The kind of the relation between the user and the contact"],
                        "info" => ["type" => "mediumtext", "comment" => ""],