]> git.mxchange.org Git - friendica.git/commitdiff
Added description
authorMichael <heluecht@pirati.ca>
Wed, 6 Apr 2022 15:02:21 +0000 (15:02 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 6 Apr 2022 15:02:21 +0000 (15:02 +0000)
database.sql
doc/database/db_post-collection.md
static/dbstructure.config.php

index d52abf1ccbf8d9ce024c43543f79791f4efe888e..2971c0af15a0b6cc97b4b586043502f6cb61ad73 100644 (file)
@@ -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
index 1e8e368efde0d568f32ed0408ab7ec5ca6538f21..3018067c8dc351e4877cfa014803c954c6e073ba 100644 (file)
@@ -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
 ------------
index 7d3904444bd77a0139b4b55aeee03fe4ad93e307..d7f2c1d00c7d51aa408bf6ba0accc840b0906669 100644 (file)
@@ -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"],