]> git.mxchange.org Git - friendica.git/commitdiff
Enhanced database comment
authorMichael <heluecht@pirati.ca>
Sun, 24 Apr 2022 00:20:06 +0000 (00:20 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 24 Apr 2022 00:20:06 +0000 (00:20 +0000)
database.sql
doc/database/db_tag.md
static/dbstructure.config.php

index 97d9912bac90eb2005241c798aa9b2077f46168f..26f948c2d322fc5abc0b35b05075b05751d934eb 100644 (file)
@@ -232,7 +232,7 @@ CREATE TABLE IF NOT EXISTS `tag` (
        `id` int unsigned NOT NULL auto_increment COMMENT '',
        `name` varchar(96) NOT NULL DEFAULT '' COMMENT '',
        `url` varbinary(255) NOT NULL DEFAULT '' COMMENT '',
-       `type` tinyint unsigned COMMENT 'Type of the tag (Unknown, Collection or Account)',
+       `type` tinyint unsigned COMMENT 'Type of the tag (Unknown, General Collection, Follower Collection or Account)',
         PRIMARY KEY(`id`),
         UNIQUE INDEX `type_name_url` (`name`,`url`),
         INDEX `url` (`url`)
index acde7bb2658de5bd47c7f0056cb9774b599f6a76..5716398012df19a13bffbdec13b0039bf6c6e37a 100644 (file)
@@ -6,12 +6,12 @@ tags and mentions
 Fields
 ------
 
-| Field | Description                                      | Type             | Null | Key | Default | Extra          |
-| ----- | ------------------------------------------------ | ---------------- | ---- | --- | ------- | -------------- |
-| id    |                                                  | int unsigned     | NO   | PRI | NULL    | auto_increment |
-| name  |                                                  | varchar(96)      | NO   |     |         |                |
-| url   |                                                  | varbinary(255)   | NO   |     |         |                |
-| type  | Type of the tag (Unknown, Collection or Account) | tinyint unsigned | YES  |     | NULL    |                |
+| Field | Description                                                                   | Type             | Null | Key | Default | Extra          |
+| ----- | ----------------------------------------------------------------------------- | ---------------- | ---- | --- | ------- | -------------- |
+| id    |                                                                               | int unsigned     | NO   | PRI | NULL    | auto_increment |
+| name  |                                                                               | varchar(96)      | NO   |     |         |                |
+| url   |                                                                               | varbinary(255)   | NO   |     |         |                |
+| type  | Type of the tag (Unknown, General Collection, Follower Collection or Account) | tinyint unsigned | YES  |     | NULL    |                |
 
 Indexes
 ------------
index 833d7da9ca498739c5c0bf52bb923bbc65feeb73..f49b38cb5539110e3e3e634fa4b766e9e75a1eb0 100644 (file)
@@ -290,7 +290,7 @@ return [
                        "id" => ["type" => "int unsigned", "not null" => "1", "extra" => "auto_increment", "primary" => "1", "comment" => ""],
                        "name" => ["type" => "varchar(96)", "not null" => "1", "default" => "", "comment" => ""],
                        "url" => ["type" => "varbinary(255)", "not null" => "1", "default" => "", "comment" => ""],
-                       "type" => ["type" => "tinyint unsigned", "comment" => "Type of the tag (Unknown, Collection or Account)"],
+                       "type" => ["type" => "tinyint unsigned", "comment" => "Type of the tag (Unknown, General Collection, Follower Collection or Account)"],
                ],
                "indexes" => [
                        "PRIMARY" => ["id"],