From 71a48ccaa686e5fe46b6488f6e270e565a10b388 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=AB=E7=84=B6?= Date: Fri, 9 Aug 2024 16:46:50 +0800 Subject: [PATCH] Add index when create WebUploadTempFiles --- scripts/sql/mysql/seafile.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/sql/mysql/seafile.sql b/scripts/sql/mysql/seafile.sql index 59fab22c..4a630dcc 100644 --- a/scripts/sql/mysql/seafile.sql +++ b/scripts/sql/mysql/seafile.sql @@ -324,5 +324,6 @@ CREATE TABLE IF NOT EXISTS WebUploadTempFiles ( id BIGINT NOT NULL PRIMARY KEY AUTO_INCREMENT, repo_id CHAR(40) NOT NULL, file_path TEXT NOT NULL, - tmp_file_path TEXT NOT NULL + tmp_file_path TEXT NOT NULL, + INDEX(repo_id) ) ENGINE=INNODB;