From ac08bc13620f792d539ef3643546df557fb8da30 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 24 Apr 2022 00:20:06 +0000 Subject: [PATCH] Enhanced database comment --- database.sql | 2 +- doc/database/db_tag.md | 12 ++++++------ static/dbstructure.config.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/database.sql b/database.sql index 97d9912bac..26f948c2d3 100644 --- a/database.sql +++ b/database.sql @@ -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`) diff --git a/doc/database/db_tag.md b/doc/database/db_tag.md index acde7bb265..5716398012 100644 --- a/doc/database/db_tag.md +++ b/doc/database/db_tag.md @@ -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 ------------ diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index 833d7da9ca..f49b38cb55 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -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"],