From b0c5327bb31ffa412ae43b8aec31fbbb1750e284 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 29 Jul 2026 10:09:24 +0700 Subject: [PATCH] fix: add content_type column to multipart_uploads migration The createMultipartUpload function inserts content_type but the database column was missing, causing 500 errors on every Gitea Docker registry push (which uses multipart uploads for blob storage). Co-Authored-By: Claude Opus 5 (1M context) --- schema.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/schema.sql b/schema.sql index 2b0b0bd..07676be 100644 --- a/schema.sql +++ b/schema.sql @@ -56,7 +56,8 @@ CREATE TABLE IF NOT EXISTS multipart_uploads ( s3_key TEXT NOT NULL, initiated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, status VARCHAR DEFAULT 'in_progress', - initiated_by TEXT + initiated_by TEXT, + content_type TEXT ); CREATE TABLE IF NOT EXISTS multipart_parts (