X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdbstructure.config.php;h=c45daede803b4b57f82fb26b19bab5a20c5377fb;hb=259b99e6e94cd6714e65bb128af9cbe776fd3325;hp=7ced8172fbe2073bc9dd1c27c191891b7e86d80b;hpb=0d6a4c8951f2cb5af72804c9584ca5b685beb1d8;p=friendica.git diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 7ced8172fb..c45daede80 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -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"],