Apply suggestions from code review
authorMichael Vogel <icarus@dabo.de>
Sun, 29 Nov 2020 16:09:51 +0000 (17:09 +0100)
committerGitHub <noreply@github.com>
Sun, 29 Nov 2020 16:09:51 +0000 (17:09 +0100)
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
database.sql
static/dbstructure.config.php

index 2dac4b6..8564a8b 100644 (file)
@@ -1140,7 +1140,7 @@ CREATE TABLE IF NOT EXISTS `post-tag` (
 CREATE TABLE IF NOT EXISTS `post-user` (
        `uri-id` int unsigned NOT NULL COMMENT 'Id of the item-uri table entry that contains the item uri',
        `uid` mediumint unsigned NOT NULL COMMENT 'Owner id which owns this copy of the item',
-       `protocol` tinyint unsigned COMMENT 'The used transport protocol - can be different per user',
+       `protocol` tinyint unsigned COMMENT 'Protocol used to deliver the item for this user',
        `contact-id` int unsigned NOT NULL DEFAULT 0 COMMENT 'contact.id',
        `unseen` boolean NOT NULL DEFAULT '1' COMMENT 'post has not been seen',
        `hidden` boolean NOT NULL DEFAULT '0' COMMENT 'Marker to hide the post from the user',
@@ -1756,4 +1756,3 @@ CREATE VIEW `workerqueue-view` AS SELECT
                        INNER JOIN `workerqueue` ON `workerqueue`.`pid` = `process`.`pid`
                        WHERE NOT `workerqueue`.`done`;
 
-
index 0574ab1..9a125cc 100644 (file)
@@ -1191,7 +1191,7 @@ return [
                "fields" => [
                        "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"],
-                       "protocol" => ["type" => "tinyint unsigned", "comment" => "The used transport protocol - can be different per user"],
+                       "protocol" => ["type" => "tinyint unsigned", "comment" => "Protocol used to deliver the item for this user"],
                        "contact-id" => ["type" => "int unsigned", "not null" => "1", "default" => "0", "foreign" => ["contact" => "id"], "comment" => "contact.id"],
                        "unseen" => ["type" => "boolean", "not null" => "1", "default" => "1", "comment" => "post has not been seen"],
                        "hidden" => ["type" => "boolean", "not null" => "1", "default" => "0", "comment" => "Marker to hide the post from the user"],