update attach.filetype field length to match photo.mimetype field length and attempt to find mimetype with finfo class if applicable.

This commit is contained in:
Mario Vavti
2026-01-05 15:34:42 +01:00
parent 933b4fbcfe
commit 9019636449
5 changed files with 47 additions and 9 deletions

View File

@@ -171,7 +171,7 @@ CREATE TABLE IF NOT EXISTS `attach` (
`hash` char(191) NOT NULL DEFAULT '',
`creator` char(191) NOT NULL DEFAULT '',
`filename` char(191) NOT NULL DEFAULT '',
`filetype` char(191) NOT NULL DEFAULT '',
`filetype` char(128) NOT NULL DEFAULT '',
`filesize` int(10) unsigned NOT NULL DEFAULT 0 ,
`revision` int(10) unsigned NOT NULL DEFAULT 0 ,
`folder` char(191) NOT NULL DEFAULT '',

View File

@@ -168,7 +168,7 @@ CREATE TABLE "attach" (
"hash" varchar(64) NOT NULL DEFAULT '',
"creator" varchar(128) NOT NULL DEFAULT '',
"filename" text NOT NULL DEFAULT '',
"filetype" varchar(64) NOT NULL DEFAULT '',
"filetype" varchar(128) NOT NULL DEFAULT '',
"filesize" bigint NOT NULL DEFAULT '0',
"revision" bigint NOT NULL DEFAULT '0',
"folder" varchar(64) NOT NULL DEFAULT '',