From c1e5974872b6f9f6c826050c1132fa1fe822fd28 Mon Sep 17 00:00:00 2001 From: Robert Swain Date: Wed, 26 Apr 2017 12:19:47 +0200 Subject: [PATCH] mediaapi/storage: Remove DEFAULT from content_disposition in schema It isn't very effective at all as we will anyway write an empty string. We can handle what to do about that in the query code paths. --- src/github.com/matrix-org/dendrite/mediaapi/storage/media.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.com/matrix-org/dendrite/mediaapi/storage/media.go b/src/github.com/matrix-org/dendrite/mediaapi/storage/media.go index b46ab8181..8dbc5602d 100644 --- a/src/github.com/matrix-org/dendrite/mediaapi/storage/media.go +++ b/src/github.com/matrix-org/dendrite/mediaapi/storage/media.go @@ -31,7 +31,7 @@ CREATE TABLE IF NOT EXISTS media_repository ( -- The MIME-type of the media file. content_type TEXT NOT NULL, -- The HTTP Content-Disposition header for the media file. - content_disposition TEXT NOT NULL DEFAULT 'inline', + content_disposition TEXT NOT NULL, -- Size of the media file in bytes. file_size BIGINT NOT NULL, -- When the content was uploaded in ms.