X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdbstructure.config.php;h=c45daede803b4b57f82fb26b19bab5a20c5377fb;hb=259b99e6e94cd6714e65bb128af9cbe776fd3325;hp=4a340d1f7b687deeca677c80f41f145a05ae9fb0;hpb=8397ccf37c2733ae74a997dab31ac55c1762a402;p=friendica.git diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 4a340d1f7b..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', 1502); + 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" => [ @@ -889,6 +907,17 @@ return [ "uid" => ["uid"], ] ], + "key-value" => [ + "comment" => "A key value storage", + "fields" => [ + "k" => ["type" => "varbinary(50)", "not null" => "1", "primary" => "1", "comment" => ""], + "v" => ["type" => "mediumtext", "comment" => ""], + "updated_at" => ["type" => "int unsigned", "not null" => "1", "comment" => "timestamp of the last update"], + ], + "indexes" => [ + "PRIMARY" => ["k"], + ], + ], "locks" => [ "comment" => "", "fields" => [ @@ -1673,8 +1702,11 @@ return [ "fields" => [ "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => "sequential ID"], "uid" => ["type" => "mediumint unsigned", "foreign" => ["user" => "uid"], "comment" => "Reporting user"], + "reporter-id" => ["type" => "int unsigned", "foreign" => ["contact" => "id"], "comment" => "Reporting contact"], "cid" => ["type" => "int unsigned", "not null" => "1", "foreign" => ["contact" => "id"], "comment" => "Reported contact"], "comment" => ["type" => "text", "comment" => "Report"], + "category" => ["type" => "varchar(20)", "comment" => "Category of the report (spam, violation, other)"], + "rules" => ["type" => "text", "comment" => "Violated rules"], "forward" => ["type" => "boolean", "comment" => "Forward the report to the remote server"], "created" => ["type" => "datetime", "not null" => "1", "default" => DBA::NULL_DATETIME, "comment" => ""], "status" => ["type" => "tinyint unsigned", "comment" => "Status of the report"], @@ -1683,6 +1715,7 @@ return [ "PRIMARY" => ["id"], "uid" => ["uid"], "cid" => ["cid"], + "reporter-id" => ["reporter-id"], ] ], "report-post" => [