mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
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:
@@ -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 '',
|
||||
|
||||
@@ -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 '',
|
||||
|
||||
Reference in New Issue
Block a user