From 1e22c9f5eb437bb43d70f48eb7ac4829d07270a4 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Sun, 29 Nov 2020 17:09:51 +0100 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Hypolite Petovan --- database.sql | 3 +-- static/dbstructure.config.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/database.sql b/database.sql index 2dac4b6ca9..8564a8ba02 100644 --- a/database.sql +++ b/database.sql @@ -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`; - diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 0574ab1849..9a125cc15b 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -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"],