]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
Bulk delivery added for all protocols
[friendica.git] / static / dbstructure.config.php
index 7ced8172fbe2073bc9dd1c27c191891b7e86d80b..c45daede803b4b57f82fb26b19bab5a20c5377fb 100644 (file)
@@ -55,7 +55,7 @@
 use Friendica\Database\DBA;
 
 if (!defined('DB_UPDATE_VERSION')) {
-       define('DB_UPDATE_VERSION', 1505);
+       define('DB_UPDATE_VERSION', 1506);
 }
 
 return [
@@ -638,6 +638,24 @@ return [
                        "wid" => ["wid"],
                ]
        ],
+       "delivery-queue" => [
+               "comment" => "Delivery data for posts for the batch processing",
+               "fields" => [
+                       "gsid" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "foreign" => ["gserver" => "id", "on delete" => "restrict"], "comment" => "Global Server ID"],
+                       "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"],
+                       "created" => ["type" => "datetime", "comment" => ""],
+                       "command" => ["type" => "varbinary(32)", "comment" => ""],
+                       "cid" => ["type" => "int unsigned", "foreign" => ["contact" => "id"], "comment" => "contact_id (ID of the contact in contact table)"],
+                       "uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "Delivering user"],
+                       "failed" => ["type" => "tinyint", "default" => 0, "comment" => "Number of times the delivery has failed"],
+               ],
+               "indexes" => [
+                       "PRIMARY" => ["uri-id", "gsid"],
+                       "gsid_created" => ["gsid", "created"],
+                       "uid" => ["uid"],
+                       "cid" => ["cid"],
+               ]
+       ],
        "diaspora-contact" => [
                "comment" => "Diaspora compatible contacts - used in the Diaspora implementation",
                "fields" => [
@@ -894,7 +912,7 @@ return [
                "fields" => [
                        "k" => ["type" => "varbinary(50)", "not null" => "1", "primary" => "1", "comment" => ""],
                        "v" => ["type" => "mediumtext", "comment" => ""],
-                       "updated_at" => ["type" => "int unsigned", "comment" => "timestamp of the last update"],
+                       "updated_at" => ["type" => "int unsigned", "not null" => "1", "comment" => "timestamp of the last update"],
                ],
                "indexes" => [
                        "PRIMARY" => ["k"],