From 99fb39ef6171c37593239af2d7b802c8c30c8732 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E8=B5=AB=E7=84=B6?= Date: Thu, 8 Aug 2024 10:27:40 +0800 Subject: [PATCH] Don't create repo_id unique index --- server/repo-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/repo-mgr.c b/server/repo-mgr.c index dd2550a1..fb00f89f 100644 --- a/server/repo-mgr.c +++ b/server/repo-mgr.c @@ -1095,7 +1095,7 @@ create_tables_mysql (SeafRepoManager *mgr) sql = "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, UNIQUE INDEX(repo_id)) ENGINE=INNODB"; + "file_path TEXT NOT NULL, tmp_file_path TEXT NOT NULL, INDEX(repo_id)) ENGINE=INNODB"; if (seaf_db_query (db, sql) < 0) return -1;