Changed field description

This commit is contained in:
Michael 2021-10-11 17:21:29 +00:00
parent 13827edd2c
commit 948450c24b
3 changed files with 32 additions and 32 deletions

View File

@ -970,7 +970,7 @@ CREATE TABLE IF NOT EXISTS `photo` (
`title` varchar(255) NOT NULL DEFAULT '' COMMENT '', `title` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`desc` text COMMENT '', `desc` text COMMENT '',
`album` varchar(255) NOT NULL DEFAULT '' COMMENT 'The name of the album to which the photo belongs', `album` varchar(255) NOT NULL DEFAULT '' COMMENT 'The name of the album to which the photo belongs',
`photo-type` tinyint unsigned COMMENT 'User avatar, contact avatar or default', `photo-type` tinyint unsigned COMMENT 'User avatar, user banner, contact avatar, contact banner or default',
`filename` varchar(255) NOT NULL DEFAULT '' COMMENT '', `filename` varchar(255) NOT NULL DEFAULT '' COMMENT '',
`type` varchar(30) NOT NULL DEFAULT 'image/jpeg', `type` varchar(30) NOT NULL DEFAULT 'image/jpeg',
`height` smallint unsigned NOT NULL DEFAULT 0 COMMENT '', `height` smallint unsigned NOT NULL DEFAULT 0 COMMENT '',

View File

@ -7,7 +7,7 @@ Fields
------ ------
| Field | Description | Type | Null | Key | Default | Extra | | Field | Description | Type | Null | Key | Default | Extra |
| ------------- | ------------------------------------------------------ | ------------------ | ---- | --- | ------------------- | -------------- | | ------------- | ------------------------------------------------------------------- | ------------------ | ---- | --- | ------------------- | -------------- |
| id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment | | id | sequential ID | int unsigned | NO | PRI | NULL | auto_increment |
| uid | Owner User id | mediumint unsigned | NO | | 0 | | | uid | Owner User id | mediumint unsigned | NO | | 0 | |
| contact-id | contact.id | int unsigned | NO | | 0 | | | contact-id | contact.id | int unsigned | NO | | 0 | |
@ -19,7 +19,7 @@ Fields
| title | | varchar(255) | NO | | | | | title | | varchar(255) | NO | | | |
| desc | | text | YES | | NULL | | | desc | | text | YES | | NULL | |
| album | The name of the album to which the photo belongs | varchar(255) | NO | | | | | album | The name of the album to which the photo belongs | varchar(255) | NO | | | |
| photo-type | User avatar, contact avatar or default | tinyint unsigned | YES | | NULL | | | photo-type | User avatar, user banner, contact avatar, contact banner or default | tinyint unsigned | YES | | NULL | |
| filename | | varchar(255) | NO | | | | | filename | | varchar(255) | NO | | | |
| type | | varchar(30) | NO | | image/jpeg | | | type | | varchar(30) | NO | | image/jpeg | |
| height | | smallint unsigned | NO | | 0 | | | height | | smallint unsigned | NO | | 0 | |

View File

@ -1023,7 +1023,7 @@ return [
"title" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], "title" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"desc" => ["type" => "text", "comment" => ""], "desc" => ["type" => "text", "comment" => ""],
"album" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "The name of the album to which the photo belongs"], "album" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => "The name of the album to which the photo belongs"],
"photo-type" => ["type" => "tinyint unsigned", "comment" => "User avatar, contact avatar or default"], "photo-type" => ["type" => "tinyint unsigned", "comment" => "User avatar, user banner, contact avatar, contact banner or default"],
"filename" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""], "filename" => ["type" => "varchar(255)", "not null" => "1", "default" => "", "comment" => ""],
"type" => ["type" => "varchar(30)", "not null" => "1", "default" => "image/jpeg"], "type" => ["type" => "varchar(30)", "not null" => "1", "default" => "image/jpeg"],
"height" => ["type" => "smallint unsigned", "not null" => "1", "default" => "0", "comment" => ""], "height" => ["type" => "smallint unsigned", "not null" => "1", "default" => "0", "comment" => ""],