]> git.mxchange.org Git - friendica.git/commitdiff
Improved notification description
authorMichael <heluecht@pirati.ca>
Mon, 1 Feb 2021 11:09:23 +0000 (11:09 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 1 Feb 2021 11:09:23 +0000 (11:09 +0000)
static/dbstructure.config.php

index 362f299c1e952604d5f835833bc3374522e06680..1e4bd602cfddf1edf762226448ef494978b1ecd5 100644 (file)
@@ -1236,16 +1236,16 @@ return [
                        "psid" => ["psid"],
                ],
        ],
-// todo        
        "post-user-notification" => [
                "comment" => "User specific post data",
                "fields" => [
-                       "uri-id" => ["type" => "int unsigned", "not null" => "1", "foreign" => ["item-uri" => "id"], "comment" => "Id of the item-uri table entry that contains the item uri"],
-                       "uid" => ["type" => "mediumint unsigned", "not null" => "1", "foreign" => ["user" => "uid"], "comment" => "Owner id which owns this copy of the item"],
+                       "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"],
+                       "uid" => ["type" => "mediumint unsigned", "not null" => "1", "primary" => "1", "foreign" => ["user" => "uid"], "comment" => "Owner id which owns this copy of the item"],
                        "notification-type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "comment" => ""],
                ],
                "indexes" => [
                        "PRIMARY" => ["uid", "uri-id"],
+                       "uri-id" => ["uri-id"],
                ],
        ],
        "process" => [