]> git.mxchange.org Git - friendica.git/blobdiff - static/dbstructure.config.php
Merge remote-tracking branch 'upstream/develop' into issue-8586
[friendica.git] / static / dbstructure.config.php
index 9cc03aa5d0efbee1bd408dc0d8bd32cf7c5d7642..c2148838989cf5055fea104ba74589a681d7bb43 100755 (executable)
@@ -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" => [