From 96954e2b1860142d9976e72f8e718d2b4534cf35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roland=20H=C3=A4der?= Date: Sun, 19 Jun 2022 02:31:59 +0200 Subject: [PATCH] Size "mediumint" wasn't enough: https://digitalcourage.video/static/webseed/5a039eb2-9fbc-441d-a772-59ae3ee65c15-1080.mp4 has 6758472669 Bytes So let's go REALLY big. --- database.sql | 2 +- doc/database/db_post-media.md | 2 +- static/dbstructure.config.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/database.sql b/database.sql index 31a08a56b..fdcc79406 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 0563f5ee8..62e6e6f96 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 a2e412465..83abc09b5 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"],