X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=static%2Fdbstructure.config.php;h=c2148838989cf5055fea104ba74589a681d7bb43;hb=ab4eaeedbe9088f111fd3c574abd4284bda2d7dd;hp=9cc03aa5d0efbee1bd408dc0d8bd32cf7c5d7642;hpb=2ee14bf5fe6642d0083d43404451b6b1fa5ce4ce;p=friendica.git diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 9cc03aa5d0..c214883898 100755 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -51,7 +51,7 @@ use Friendica\Database\DBA; if (!defined('DB_UPDATE_VERSION')) { - define('DB_UPDATE_VERSION', 1345); + define('DB_UPDATE_VERSION', 1346); } return [ @@ -1289,6 +1289,19 @@ return [ "url" => ["url"] ] ], + "post-category" => [ + "comment" => "post relation to categories", + "fields" => [ + "uri-id" => ["type" => "int unsigned", "not null" => "1", "primary" => "1", "relation" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the item uri"], + "uid" => ["type" => "mediumint unsigned", "not null" => "1", "default" => "0", "relation" => ["user" => "uid"], "comment" => "User id"], + "type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "primary" => "1", "comment" => ""], + "tid" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "primary" => "1", "relation" => ["tag" => "id"], "comment" => ""], + ], + "indexes" => [ + "PRIMARY" => ["uri-id", "uid", "type", "tid"], + "uri-id" => ["tid"] + ] + ], "post-delivery-data" => [ "comment" => "Delivery data for items", "fields" => [