From 612e91b603a5a5817839d04d120e1cf672b8a80e Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 6 Apr 2022 15:02:21 +0000 Subject: [PATCH] Added description --- database.sql | 2 +- doc/database/db_post-collection.md | 2 +- static/dbstructure.config.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database.sql b/database.sql index d52abf1cc..2971c0af1 100644 --- a/database.sql +++ b/database.sql @@ -1067,7 +1067,7 @@ CREATE TABLE IF NOT EXISTS `post-category` ( -- CREATE TABLE IF NOT EXISTS `post-collection` ( `uri-id` int unsigned NOT NULL COMMENT 'Id of the item-uri table entry that contains the item uri', - `type` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '', + `type` tinyint unsigned NOT NULL DEFAULT 0 COMMENT '0 - Featured', PRIMARY KEY(`uri-id`,`type`), INDEX `type` (`type`), FOREIGN KEY (`uri-id`) REFERENCES `item-uri` (`id`) ON UPDATE RESTRICT ON DELETE CASCADE diff --git a/doc/database/db_post-collection.md b/doc/database/db_post-collection.md index 1e8e368ef..3018067c8 100644 --- a/doc/database/db_post-collection.md +++ b/doc/database/db_post-collection.md @@ -9,7 +9,7 @@ Fields | Field | Description | Type | Null | Key | Default | Extra | | ------ | --------------------------------------------------------- | ---------------- | ---- | --- | ------- | ----- | | uri-id | Id of the item-uri table entry that contains the item uri | int unsigned | NO | PRI | NULL | | -| type | | tinyint unsigned | NO | PRI | 0 | | +| type | 0 - Featured | tinyint unsigned | NO | PRI | 0 | | Indexes ------------ diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 7d3904444..d7f2c1d00 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -1107,7 +1107,7 @@ return [ "comment" => "Collection of posts", "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"], - "type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "primary" => "1", "comment" => ""], + "type" => ["type" => "tinyint unsigned", "not null" => "1", "default" => "0", "primary" => "1", "comment" => "0 - Featured"], ], "indexes" => [ "PRIMARY" => ["uri-id", "type"],