diff --git a/database.sql b/database.sql index 31a08a56b8..fdcc79406e 100644 --- a/database.sql +++ b/database.sql @@ -1221,7 +1221,7 @@ CREATE TABLE IF NOT EXISTS `post-media` ( `mimetype` varchar(60) COMMENT '', `height` smallint unsigned COMMENT 'Height of the media', `width` smallint unsigned COMMENT 'Width of the media', - `size` mediumint unsigned COMMENT 'Media size', + `size` bigint unsigned COMMENT 'Media size', `preview` varbinary(255) COMMENT 'Preview URL', `preview-height` smallint unsigned COMMENT 'Height of the preview picture', `preview-width` smallint unsigned COMMENT 'Width of the preview picture', diff --git a/doc/database/db_post-media.md b/doc/database/db_post-media.md index 0563f5ee89..62e6e6f96f 100644 --- a/doc/database/db_post-media.md +++ b/doc/database/db_post-media.md @@ -15,7 +15,7 @@ Fields | mimetype | | varchar(60) | YES | | NULL | | | height | Height of the media | smallint unsigned | YES | | NULL | | | width | Width of the media | smallint unsigned | YES | | NULL | | -| size | Media size | mediumint unsigned | YES | | NULL | | +| size | Media size | bigint unsigned | YES | | NULL | | | preview | Preview URL | varbinary(255) | YES | | NULL | | | preview-height | Height of the preview picture | smallint unsigned | YES | | NULL | | | preview-width | Width of the preview picture | smallint unsigned | YES | | NULL | | diff --git a/static/dbstructure.config.php b/static/dbstructure.config.php index a2e4124657..83abc09b57 100644 --- a/static/dbstructure.config.php +++ b/static/dbstructure.config.php @@ -1257,7 +1257,7 @@ return [ "mimetype" => ["type" => "varchar(60)", "comment" => ""], "height" => ["type" => "smallint unsigned", "comment" => "Height of the media"], "width" => ["type" => "smallint unsigned", "comment" => "Width of the media"], - "size" => ["type" => "mediumint unsigned", "comment" => "Media size"], + "size" => ["type" => "bigint unsigned", "comment" => "Media size"], "preview" => ["type" => "varbinary(255)", "comment" => "Preview URL"], "preview-height" => ["type" => "smallint unsigned", "comment" => "Height of the preview picture"], "preview-width" => ["type" => "smallint unsigned", "comment" => "Width of the preview picture"],