]> git.mxchange.org Git - friendica.git/commitdiff
Size "mediumint" wasn't enough:
authorRoland Häder <roland@mxchange.org>
Sun, 19 Jun 2022 00:31:59 +0000 (02:31 +0200)
committerRoland Häder <roland@mxchange.org>
Sun, 19 Jun 2022 13:36:15 +0000 (15:36 +0200)
https://digitalcourage.video/static/webseed/5a039eb2-9fbc-441d-a772-59ae3ee65c15-1080.mp4 has 6758472669 Bytes

So let's go REALLY big.

database.sql
doc/database/db_post-media.md
static/dbstructure.config.php

index 31a08a56b88c9e4536d4c8e980a2647e87d1dc4b..fdcc79406ed07070bc5de45bb909b1149780a347 100644 (file)
@@ -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',
index 0563f5ee89435ec496af10291882b938d3b2c827..62e6e6f96f838a905552f3f50b79ccd726be6270 100644 (file)
@@ -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    |                |
index a2e41246579d8adc16b152c6e86065e0244b20c1..83abc09b57c7bfad8f3a1b28d28a168e83566f90 100644 (file)
@@ -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"],