]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
Merge pull request #11159 from annando/api-finally-moved
[friendica.git] / static / dbstructure.config.php
index 97cde18bb5b4765733f421a995f92f6cce905dda..ca52dace8b0a29441701a4da9c31fd4354fa009f 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1444);
+       define('DB_UPDATE_VERSION', 1448);
 }
 
 return [
@@ -662,6 +662,9 @@ return [
                        "alias" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
                        "pubkey" => ["type" => "text", "comment" => ""],
                        "updated" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""],
+                       "interacting_count" => ["type" => "int unsigned", "default" => 0, "comment" => "Number of contacts this contact interactes with"],
+                       "interacted_count" => ["type" => "int unsigned", "default" => 0, "comment" => "Number of contacts that interacted with this contact"],
+                       "post_count" => ["type" => "int unsigned", "default" => 0, "comment" => "Number of posts and comments"],
                ],
                "indexes" => [
                        "PRIMARY" => ["id"],
@@ -880,7 +883,8 @@ return [
                        "target-uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Item-uri id of the related post"],
                        "parent-uri-id" => ["type" => "int unsigned", "foreign" => ["item-uri" => "id"], "comment" => "Item-uri id of the parent of the related post"],
                        "created" => ["type" => "datetime", "comment" => ""],
-                       "seen" => ["type" => "boolean", "default" => "0", "comment" => ""],
+                       "seen" => ["type" => "boolean", "default" => "0", "comment" => "Seen on the desktop"],
+                       "dismissed" => ["type" => "boolean", "default" => "0", "comment" => "Dismissed via the API"],
                ],
                "indexes" => [
                        "PRIMARY" => ["id"],