]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
Blanks replaced
[friendica.git] / static / dbstructure.config.php
index e3435989cf4586aa286372f22db00a5c6b47ec20..44b2fc1f80fa5dff06e35e0799aab91dd25fe983 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1461);
+       define('DB_UPDATE_VERSION', 1462);
 }
 
 return [
@@ -1114,8 +1114,8 @@ return [
                ],
                "indexes" => [
                        "PRIMARY" => ["uri-id", "uid", "type", "tid"],
-                       "uri-id" => ["tid"],
-                       "uid" => ["uid"],
+                       "tid" => ["tid"],
+                       "uid_uri-id" => ["uid", "uri-id"],
                ]
        ],
        "post-collection" => [
@@ -1158,13 +1158,15 @@ return [
                ]
        ],
        "post-delivery" => [
-               "comment" => "Status of ActivityPub inboxes",
+               "comment" => "Delivery data for posts for the batch processing",
                "fields" => [
                        "uri-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the item uri"],
                        "inbox-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["item-uri" => "id"], "comment" => "Item-uri id of inbox url"],
                        "uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "Delivering user"],
                        "created" => ["type" => "datetime", "default" => DBA::NULL_DATETIME, "comment" => ""],
                        "command" => ["type" => "varbinary(32)", "comment" => ""],
+                       "failed" => ["type" => "tinyint", "default" => 0, "comment" => "Number of times the delivery has failed"],
+                       "receivers" => ["type" => "mediumtext", "comment" => "JSON encoded array with the receiving contacts"],
                ],
                "indexes" => [
                        "PRIMARY" => ["uri-id", "inbox-id"],
@@ -1230,6 +1232,7 @@ return [
                "indexes" => [
                        "PRIMARY" => ["id"],
                        "uri-id-url" => ["UNIQUE", "uri-id", "url"],
+                       "uri-id-id" => ["uri-id", "id"],
                ]
        ],
        "post-question" => [